$pythonCommand1 = "python gamHigh/gam.py update user $USER->username password $data->newpassword1";
exec($pythonCommand1);
Disclaimer: I have not tried to run gam this way…
As root you can become any other user, so you can do su - www-data –s/bin/bash and you should get a bash shell that allows you to run the script for the first time AS www-data.
April
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/c2dc65e1-a950-4dfe-8af5-1fc87781b7bb%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.