in reply to getpwnam() password
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: getpwnam() password
by merlyn (Sage) on Aug 03, 2000 at 07:42 UTC | |
by tye (Sage) on Aug 03, 2000 at 18:36 UTC |