Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:configure_group-managed_content [2018/04/09 23:15] billdozor [Group Protected Setup] |
linux_wiki:configure_group-managed_content [2018/05/07 22:50] billdozor [Basic Apache Directory Setup] |
||
---|---|---|---|
Line 48: | Line 48: | ||
<code bash> | <code bash> | ||
chown :developers / | chown :developers / | ||
- | chmod 771 / | + | chmod 771 / |
</ | </ | ||
Line 61: | Line 61: | ||
====== Group Protected Setup ====== | ====== Group Protected Setup ====== | ||
- | Edit the vhosts.conf and add a directory auth section for the new devel-group directory | + | **Help**: Available if you installed 'httpd-manual' |
- | <code bash> | + | * Then follow the "Letting more than one person in" |
- | vim /etc/httpd/conf.d/vhosts.conf | + | |
- | + | ||
- | < | + | |
- | ServerName redsite.example.com | + | |
- | DocumentRoot | + | |
- | #....SNIP....# | + | |
- | + | ||
- | | + | |
- | | + | |
- | AuthName | + | |
- | AuthGroupFile "/ | + | |
- | AuthUserFile "/ | + | |
- | Require group developers | + | |
- | </ | + | |
- | </ | + | |
\\ | \\ | ||
Line 92: | Line 77: | ||
htpasswd / | htpasswd / | ||
htpasswd / | htpasswd / | ||
+ | htpasswd / | ||
</ | </ | ||
* Prompted for password each time | * Prompted for password each time | ||
* Give ' | * Give ' | ||
* No " | * No " | ||
+ | |||
+ | \\ | ||
+ | Edit the vhosts.conf and add a directory auth section for the new devel-group directory | ||
+ | <code bash> | ||
+ | vim / | ||
+ | |||
+ | < | ||
+ | ServerName redsite.example.com | ||
+ | DocumentRoot / | ||
+ | # | ||
+ | |||
+ | < | ||
+ | AuthType Basic | ||
+ | AuthName "Group Auth - Enter Credentials" | ||
+ | AuthGroupFile "/ | ||
+ | AuthUserFile "/ | ||
+ | Require group developers | ||
+ | </ | ||
+ | </ | ||
+ | * Now only users in the userdb file AND in the " | ||
+ | * robert and steve should be allowed in, monty should be denied. | ||
\\ | \\ |