On Fri, Apr 30, 2010 at 23:22, mdipierro <[email protected]> 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

Reply via email to