[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: useradd and passwd
On Fri, 11 May 2001, Mithun Bhattacharya wrote:
> -p passwd
> The encrypted password, as returned by crypt(3) or
> an MD5 password generator. The default is to dis
> able the account.
>
If there are other people logged on to the same box, they might see
`useradd -p passwd blah' in a ps listing.
Another way to do this is to use `expect' (or its perl interface) to feed
the real password to `passwd'.
expect is a really neat program. http://expect.nist.gov/FAQ.html
bye :)
Anmol