Your example has passwd encrypted in DES not MD5. MD5 encypted passwd has
the form:

$1$<string>$<md5_encrypted_passwd>

where <string> is an 8-char string and
<md5_encrypted_passwd> is 22-char from [/.a-zA-Z0-9] md5 encrypted. Most
modern linux distro uses md5 for /etc/shadow. If you want, you can
automatically generate encrypted passwd for shadow file using a perl
script:

#!/usr/bin/perl -w

system "stty -echo";
print "Password: ";
chomp(my $word = <STDIN>);
system "stty echo";
my $salt = '$1$';
for(1..8) {
        $salt = join('',$salt,chr(rand(127-33)+33));
}
print "\nMD5 Encrypted password:",crypt($word, $salt),"\n";

rowel

erg ert said:
>
> hi people need your help
>
> how can I put md5 algo in my passwd file.for example the user is
>
> darwin:v0sLq.jIvJp.ng:Denny:Castroy:
>
> Is there a a process or command that I can use? Thanks in advance.



_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to