[Gllug] non-interactive passwd

Matthew King matthew.king at monnsta.net
Thu May 8 19:46:50 UTC 2003


> ah, but the -p switch will require the encrypted form of the password,
> if you  are using shadow ( i have been caught out by this), but i
> suppose this is  scriptable (I haven't tried).
> --------------from man useradd------------------------------------ -p
> passwd
> The encrypted password, as returned by crypt(3).
> The default is  to  disable  the account.
> ------------------------------------------------------------------------

useradd .... -p $(mkpasswd cleartext [optional-salt])

Matthew

-- 
GIT/CM/M d++(-) s++: a--->? C++++ UL++++$ +++>++++ L+++ E>++ W-- N+ o?
K++  w--- O-- M+ V? PS+>++ PE(--) Y+>++ PGP+++@ t+ 5-- X+(-) R tv-
b++>++++ DI++++ D++ G++ e(*) h!>++ r-- y->++++






-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list