I've used this method in the past, and you don't have to deal with having read access to /etc/shadow or special permissions to run other programs that can read the shadow file.
Well, you do run another program with special permissions, and it's called 'ftpd'. Not something I recommend to solve this problem.
The Apache user can do this just fine.
On a properly configured system, there's only one user that can read /etc/shadow, and that's UID 0, aka root. Unless you change the permissions of /etc/shadow, or give the apache user UID 0 (neither of those action is smart), it ain't going to work.
Abigail
In reply to Re: Using Unix passwd/shadow to authenticate in perl
by Abigail-II
in thread Using Unix passwd/shadow to authenticate in perl
by bennomatic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |