Hi, I'm trying to setup an admin pannel (using php) where users can login and change their passwords. For awhile I was using webmin, but it's too much work and I'd rather do it myself. I also want to allow users to change passwords for extra e-mail accounts they have created. My first problem is the login. I can't figure out how to authentiate a unix user using php. First I tried to
su $username
using proc_open. However, this returns the error (in stderr) "standard in must be a tty". I also tried to compare the user and hashed password against /etc/shadow but I can't figure out how to sudo for a fopen. Any ideas? Thanks
-ben
su $username
using proc_open. However, this returns the error (in stderr) "standard in must be a tty". I also tried to compare the user and hashed password against /etc/shadow but I can't figure out how to sudo for a fopen. Any ideas? Thanks
-ben