ApachePAMunixAuth

From DrewWiki
Jump to navigation Jump to search
$ sudo yum install mod_auth_pam.x86_64 mod_auth_shadow.x86

http://pam.sourceforge.net/mod_auth_pam/shadow.html

Add to <Directory> or <Location>

    AuthPAM_Enabled on
    AuthShadow on
    AuthType "basic"
    AuthName "Auth"
    require user drew
    #require group blabla

Find safe work around

chmod 440 /etc/passwd

(orig 400)