The hashed password is stored in /web2py/parameters_[port number].py like this:
password="[hashed password]" The hash is created via CRYPT()(password)[0], so you could replace that file with your new hashed password. The Ubuntu setup script does the following to prompt for a new password and automatically create the appropriate file: cd /home/www-data/web2py sudo -u www-data python -c "from gluon.widget import console; console();" sudo -u www-data python -c "from gluon.main import save_password; save_password(raw_input('admin password: '),443)" The gluon.main.save_password function takes the password and the port and creates the appropriate parameters_*.py file. Anthony On Thursday, January 12, 2012 8:37:09 AM UTC-5, lucas wrote: > > hello one and all, > > i am stupid. i forgot the web2py admin password on my server and i > can't access the https interface. how can i change the password? is > there a simple script i can run as root or something? > > thanx in advance. i know the technique is somewhere, i just can't > find it. lucas