in reply to shadow passwd
in any case you should build a file in this format:use Crypt::PasswdMD5; sub my_md5_crypt { my $salt; for(0..7) { $salt .= ('.', '/', 0..9, 'A'..'Z','a'..'z')[rand 64]; } my $pass = shift; #clear text password return unix_md5_crypt($pass, '$1$' . $salt . '$'); }
and thenUSERNAME:ENCRYPTEDPASSWORD USERNAME2:ENCRYPTEDPASSWORD2 ...
Note: if you have normal crypt passwords just build a file like that:cat THATFILE | /usr/sbin/chpasswd -e
and then "/usr/sbin/chpasswd < THATFILE"USERNAME1:CLEARTEXTPASS_1 ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: shadow passwd
by merlyn (Sage) on Oct 26, 2000 at 17:08 UTC | |
|
RE: Re: shadow passwd
by Anonymous Monk on Oct 26, 2000 at 16:42 UTC |