On Tue, Oct 26, 2004 at 09:10:14AM -0500, Mike Miller wrote:
> Note that "ab" are the first two characters of the putatively
> encrypted output.  It seems that your perl command always includes the
> first two letters of the input as the first two letters of the output:
[snip]

Yep, that's the salt.  See perldoc -f crypt and man crypt.

> I really want to figure out how to generate the correct 'passwd'
> string for this command.  Whatever one enters as 'passwd' is *exactly*
> what is entered in the password field of /etc/shadow.  Thus, it would
> be really nice for generating new user accounts to have this working.

Why not just use "passwd" to generate passwords for users?

-- 
trammell at el-swifto.com  9EC7 BC6D E688 A184 9F58  FD4C 2C12 CC14 8ABA 36F5
Twin Cities Linux Users Group (TCLUG)      Minneapolis/St. Paul, Minnesota

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list