I am using the Ubuntu 8.04 LTS 64 bits provided by VPS.net It has a root account and you can only login into it using the root account, until you create another account. Perhaps this is the *root* or of the problem.
Massimo On Apr 30, 9:37 pm, Álvaro Justen <alv...@justen.eng.br> wrote: > On Fri, Apr 30, 2010 at 23:22, mdipierro <mdipie...@cs.depaul.edu> wrote: > > I have the following problem. On ubuntu. > > >>>> from gluon.contrib.pam import authenticate > >>>> authenticate('username','password') > > > it works for every 'username' except for 'root'. This prevents me from > > setting up the root password as default admin password. > > > It is not a web2py issue, nor a gluon.contrib.pam issue. It is a pam > > configuration issue. It is not even a bug, it is done for security > > reasons. Yet I want to check the 'root' password using the pam.py api > > so that I can build a default web2py-ready-vps image. > > > Any idea how to make it work for 'root'? > > On Ubuntu root does not have a password set. The user that installed > the system (the first usem created, UID = 1000) has sudo power. > This user can do execute "sudo passwd" and change (create) the root > password, but the default is to root don't have a password. So I think > the default could be admin password = password of the user that is > running web2py (if the user is root and the developer used sudo python > web2py.py in Ubuntu, so we have a problem). > > -- > Álvaro Justen - Turicas > http://blog.justen.eng.br/ > 21 9898-0141