Set pre-encrypted passwords for users

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Wed Mar 31 13:21:01 CEST 2010


On Wed, 31 Mar 2010, Joel Merrick wrote:

> Use useradd or usermod
>
> ie..
>
> useradd -o -s /bin/bash -p $ENCPASS user

But that will make $ENCPASS visible with:

	$ tr '\0' ' ' < /proc/PID/cmdline

for a moment.  Isn't reading from a file descriptor is the prefered
method for doing that?


Cheers,

-- 
Cristian


More information about the linux-fai mailing list