title: How would I use PHP to authenticate with Linux users and passwords?
body: <p>Say I wanted to create something like how cPanel works, it uses the username and password from the system. </p>
  
  <p>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)</p>
  
  <p>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.</p>
  
  <p>Any ideas would greatly be appreciated, thanks! :)</p>