[Users] create CT with password
albinootje
albinootje at gmail.com
Tue Nov 11 05:38:30 EST 2008
Dietmar Maurer wrote:
> Is there are real world example where my approach does not work?
>
> I check for /etc/shadow, and store as md5 - AFAIK the user is able to
> login with that password on all distribution using pam_unix. If not, we can still
> try to read and parse the pam configuration.
>
> It will not work for nis, but that is a rare case. But nis requires a network anyways,
> so the current code also fails.
>
> So how can I create a VM with a password? For example:
>
> # vzctl create
> # vzctl start
> # vzctl set --password
>
> can also fail because the network is not running when we execute the passwd
> command (vzctl start does not wait until the network is fully functional, and passwd requires
> the network when it uses nis).
For NIS you would add users and change passwords on the NIS-master,
or are you setting up the VE as a pre-configured NIS-slave perhaps ?
More information about the Users
mailing list