linux_wiki:configure_group-managed_content

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:configure_group-managed_content [2018/04/08 00:06]
billdozor [Basic Apache Directory Setup]
linux_wiki:configure_group-managed_content [2019/05/25 23:50]
Line 1: Line 1:
-====== Configure Group-managed Content ====== 
- 
-**General Information** 
- 
-Group managed content for collaboration. 
- 
----- 
- 
-====== Lab Setup ====== 
- 
-The following virtual machines will be used: 
-  * server1.example.com (192.168.1.150) -> Perform all connectivity tests from here 
-  * server2.example.com (192.168.1.151) -> Install Apache Web Server here 
- 
----- 
- 
-====== Basic Apache Directory Setup ====== 
- 
-Create directory to use 
-<code bash> 
-mkdir /data/redsite/group 
-</code> 
- 
-\\ 
-Create group that will have access to the directory to manage the content 
-<code bash> 
-groupadd dbadmins 
-</code> 
- 
-\\ 
-Add users to the group 
-<code bash> 
-usermod -G dbadmins user1 user2 
-</code> 
- 
-\\ 
-Set permissions of new directory 
-<code bash> 
-chown :dbadmins /data/redsite/group 
-chmod 771 /data/redsite/group 
-</code> 
- 
-\\ 
-Create index file 
-<code bash> 
-echo "Group dbadmins index file" > /data/redsite/group/index.html 
-</code> 
- 
----- 
- 
-====== Group Protected Setup ====== 
- 
-Allow htaccess override for the new group directory 
-<code bash> 
-vim /etc/httpd/conf.d/vhosts.conf 
- 
-<VirtualHost *:80> 
-  ServerName redsite.example.com 
-  DocumentRoot /data/redsite 
-  #....SNIP....# 
- 
-  <Directory /var/private> 
-    AuthType Basic 
-    AuthName "Group Auth - Enter Credentials" 
-    AuthGroupFile "/etc/httpd/conf/groupdb" 
-    AuthUserFile "/etc/httpd/conf/userdb" 
-    Require group dbadmins 
-  </Directory> 
-</code> 
- 
-\\ 
-Create groupdb file 
-<code bash> 
-vim /etc/httpd/conf/groupdb 
- 
-dbadmins: user1 user2 
-</code> 
- 
-\\ 
-Create group password db file 
-<code bash> 
-htpasswd -c /etc/httpd/conf/userdb user1 
-htpasswd /etc/httpd/conf/userdb user2 
-</code> 
-  * Prompted for password each time 
-  * -c -> Create the file 
-  * No "-c" the second time because it would overwrite the file instead of add to it. 
- 
-\\ 
-Restart httpd 
-<code bash> 
-systemctl restart httpd 
-</code> 
- 
-\\ 
-View group protected directory 
-<code bash> 
-elink http://redsite.example.com/group 
-</code> 
-  * Prompted for username/password 
- 
----- 
  
  • linux_wiki/configure_group-managed_content.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)