in reply to Re: Using Unix passwd/shadow to authenticate in perl
in thread Using Unix passwd/shadow to authenticate in perl
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using Unix passwd/shadow to authenticate in perl
by DrHyde (Prior) on Sep 26, 2003 at 09:14 UTC | |
by Abigail-II (Bishop) on Sep 26, 2003 at 09:49 UTC | |
|
Re: Re: Using Unix passwd/shadow to authenticate in perl
by ronzomckelvey (Acolyte) on Sep 26, 2003 at 17:20 UTC | |
by bennomatic (Initiate) on Sep 26, 2003 at 21:48 UTC | |
by Abigail-II (Bishop) on Sep 26, 2003 at 17:29 UTC | |
|
Re: Re: Using Unix passwd/shadow to authenticate in perl
by bennomatic (Initiate) on Sep 26, 2003 at 16:56 UTC |