[CentOS] Generating password string in /var/nis/passwd with Perl
Stephen Harris
lists at spuddy.orgTue Jan 20 16:14:52 UTC 2009
- Previous message: [CentOS] Generating password string in /var/nis/passwd with Perl
- Next message: [CentOS] CentOS-announce Digest, Vol 47, Issue 8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jan 20, 2009 at 05:11:27PM +0100, Alexander Farber wrote: > I could skip one manual step (calling yppasswd) if I knew > how to generate the passwd string for /var/nis/passwd: > > farber:oav3dV4.Mnj/.:10154153:5725:Alexander > Has anybody already figured out, how to do it from Perl? crypt is the function to call. eg print crypt("hello","ab") abl0JrMf6tlhw The "ab" is the salt and should be chose from [a-zA-Z0-9./] "man 3 crypt" for the C version, which the perl version mimics -- rgds Stephen
- Previous message: [CentOS] Generating password string in /var/nis/passwd with Perl
- Next message: [CentOS] CentOS-announce Digest, Vol 47, Issue 8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list