getpwnam() only returns the crypted password if you execute it as root.
(root password changed to protect the innocent)[matt@resuna ~]$ perl -le 'print $passwd = (getpwnam("root"))[1]' * [matt@resuna ~]$ su Password: resuna# perl -le 'print $passwd = (getpwnam("root"))[1]' $2a$61$8DF//jVKvvTJ1zimSj82fdsFH/.z64H3vHlcp1FqhEOJ9HBBSiPq6
-Matt
In reply to Re: getpwnam() password
by DrManhattan
in thread getpwnam() password
by flacour
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |