Comment by onraglanroad
6 months ago
No, I'm right. You can't run unix_chkpwd against a local account without root because you won't be able to access /etc/shadow to get the hash. If you think you can, explain how. Otherwise you have to use the setuid version which won't let you run it directly.
And I just removed the delay using my method. Perhaps try checking something yourself?
I don't understand how you can be so confidently wrong about something so easily checked. :D
> You can't run unix_chkpwd against a local account without root because you won't be able to access /etc/shadow to get the hash.
unix_chkpwd can access /etc/shadow because it is suid.
> Otherwise you have to use the setuid version which won't let you run it directly.
Haha you mean this?
Take a look at the source code I linked about 6 comments ago!
> Perhaps try checking something yourself?
I have. You haven't.