How would I use PHP to authenticate with Linux users and passwords?

LamBardz

New Member
Say I wanted to create something like how cPanel works, it uses the username and password from the system. You can run 'passwd user' on the server, and the password would still work with cPanel and FTP (not necessarily MySQL, but you get the point)How would I accomplish this in PHP? I haven't the slightest idea, besides running /bin/su locally and running from that. With that, it might be inaccurate though.. I usually have a few of my developers either on a sub-account, or on root developing something.Any ideas would greatly be appreciated, thanks! :)
 
Back
Top