ApachePAMunixAuth: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<pre># yum install mod_auth_pam.x86_64 mod_auth_shadow.x86</pre> http://pam.sourceforge.net/mod_auth_pam/shadow.html Add to <Directory> or <Location> <pre> AuthPAM_Enabled o...") |
(fix syntax for ApachePAMunixAuth) |
||
Line 1: | Line 1: | ||
< | <syntaxhighlight lang=bash> | ||
$ sudo yum install mod_auth_pam.x86_64 mod_auth_shadow.x86 | |||
</syntaxhighlight> | |||
http://pam.sourceforge.net/mod_auth_pam/shadow.html | http://pam.sourceforge.net/mod_auth_pam/shadow.html | ||
Add to <Directory> or <Location> | Add to <Directory> or <Location> | ||
< | <syntaxhighlight lang=bash> | ||
AuthPAM_Enabled on | AuthPAM_Enabled on | ||
AuthShadow on | AuthShadow on | ||
Line 10: | Line 12: | ||
require user drew | require user drew | ||
#require group blabla</pre> | #require group blabla</pre> | ||
</syntaxhighlight> | |||
< | =Find safe work around= | ||
<syntaxhighlight lang=bash> | |||
chmod 440 /etc/passwd | |||
</syntaxhighlight> | |||
(orig 400) |
Revision as of 00:30, 25 January 2018
$ 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</pre>
Find safe work around
chmod 440 /etc/passwd
(orig 400)