open(SHADOW, "< /etc/shadow") || die "Can't open for read: $!";
while(<SHADOW>) {
if($_ =~ /^$user:(\w+):.*/) {
print "$user's encrypted password is $1\n";
}
}
In reply to Re: getpwnam() password
by Anonymous Monk
in thread getpwnam() password
by flacour
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |