Thanks that worked. My web2py process is starting with my logged in user. I did this to prevent having to su all the time, and I can do git pull and changes from a single user account.
Anyway with my setup you don't need: sudo -u user_name instead you just run: python -c "from gluon.widget import console; console();" python -c "from gluon.main import save_password; save_password(raw_input('admin password: '),443)" On Tue, Feb 28, 2012 at 6:46 PM, Bruce Wade <bruce.w...@gmail.com> wrote: > Yes I have ssh. The site is on an amazon ubuntu instance. > > If my python process is running with a user other then www-data do I just > change the first part of the command? > > sudo -u user_name python -c "from gluon main import save_password; > save_password(raw_input('admin password:'), 443)" > > > On Tue, Feb 28, 2012 at 5:46 PM, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> Do you have ssh access? You better do. >> >> cd under web2py/ >> then do: >> sudo -u www-data python -c "from gluon.main import save_password; >> save_password(raw_input('admin password: '),443)" >> >> replace 443 with the port you use for admin. Should be 443 for https >> >> On Feb 28, 7:15 pm, Bruce Wade <bruce.w...@gmail.com> wrote: >> > For some reason the admin interface was not accepting the new password I >> > created on my development server. Now it says admin has been disabled >> how >> > do I re-enable it? >> > >> > -- >> > -- >> > Regards, >> > Bruce Wadehttp:// >> ca.linkedin.com/in/brucelwadehttp://www.wadecybertech.comhttp://www.warplydesigned.comhttp://www.fitnessfriendsfinder.com >> > > > > -- > -- > Regards, > Bruce Wade > http://ca.linkedin.com/in/brucelwade > http://www.wadecybertech.com > http://www.warplydesigned.com > http://www.fitnessfriendsfinder.com > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com