Vending machines distributing the drug marijuana are to begin operating in the US state of California. The machines can only be used by people who have been prescribed the drug for health reasons. Patients will have to provide a prescription, and be fingerprinted and photographed before being allowed to use the facilities. Eleven US states allow the medicinal use of marijuana, primarily for pain relief, but it remains controversial.