No such thing as a small change | |
PerlMonks |
Re: processing system user loginby Anno (Deacon) |
on Feb 26, 2007 at 10:12 UTC ( [id://602089]=note: print w/replies, xml ) | Need Help?? |
Most systems don't store the encrypted password in /etc/passwd anymore but move it to a file with stricter access control (often /etc/shadow). In these cases what you get from getpwnam() under a non-privileged account is just a dummy that has nothing to do with the actual user password. Only a user who has access to the shadow file (root) can verify a password using your code. Try running it under root.
Anno
In Section
Seekers of Perl Wisdom
|
|