Login   Register  
PHP Classes

Login with Linux passwd or shadow: Authenticate Linux users with passwd or shadow

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-12-06 (2 years ago) RSS 2.0 feedStarStarStar 53%Total: 610 All time: 4,699 This week: 1,587Up
Version License PHP version Categories  
linux-auth 1.0GNU General Public Lice...5.0PHP 5, User Management, Unix
Description Author  

This class can authenticate Linux/Unix users with passwd or shadow files.

It can check the system passwd or shadow files to verify if a given password crypt hash is correct for a given system user name.

The class can be used when executed by a system user with sudo permissions to access the system passwd or shadow files.

Innovation Award  
PHP Programming Innovation award nominee
December 2011
Number 4

Prize: One copy of the Zend Studio
Some applications need to provide access to authenticated users with accounts in the same Linux server that is working as Web server.

This class provides a PHP wrapper to implement Linux accounts based authentication with the necessary workarounds to make it possible to authenticate even the root user.

Manuel Lemos
Picture of Marcus Brasizza
Name: Marcus Brasizza <contact>
Classes: 6 packages by
Country: Brazil Brazil
Age: 28
All time rank: 77955 in Brazil Brazil
Week rank: 245 Up17 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example to authenticate
Plain text file LinuxAuth.php Class Class to auth

 Version Control Unique User Downloads Download Rankings  
 0%Total:610All time:4,699
 This week:0This week:1,587Up
User Ratings User Comments (2)  
 All time
I never saw anything less secure than this solution.
2 years ago (Artur Graniszewski)
Great Job !!!!.
2 years ago (dario diaz)