linux_wiki:create_and_configure_set-gid_directories_for_collaboration

Differences

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

Link to this comparison view

linux_wiki:create_and_configure_set-gid_directories_for_collaboration [2016/02/29 21:38]
billdozor created
linux_wiki:create_and_configure_set-gid_directories_for_collaboration [2019/05/25 23:50]
Line 1: Line 1:
-====== Create And Configure Set-gid Directories For Collaboration ====== 
- 
-**General Information** 
- 
-About this page/how-to/script.  
- 
----- 
- 
-When files are created in a directory with set-GID, the new files inherit the group ownership of that directory. 
- 
-Example scenario: There are three departments that have data folders for storage. (Finance, IT, and Management) They would like all files created in each of their folders to have the same group ownership for easy department file editing. 
- 
-The directories 
-  * /data/financial-docs 
-  * /data/it-scripts 
-  * /data/manager-reports 
- 
-The group names: 
-  * finance 
-  * it 
-  * managers 
- 
-Each group owns their respective directory 
-<code bash> 
-chown :finance /data/financial-docs 
-chown :it /data/it-scripts 
-chown :managers /data/manager-reports 
-</code> 
- 
-Change the group set-GID bit to achieve the requirement in the scenario 
-<code bash> 
-chmod g+s /data/financial-docs 
-chmod g+s /data/it-scripts 
-chmod g+s /data/manager-reports 
-</code> 
- 
-Remove Permissions from all others 
-<code bash> 
-chmod o-rwx /data/financial-docs 
-chmod o-rwx /data/it-scripts 
-chmod o-rwx /data/manager-reports 
-</code> 
- 
----- 
  
  • linux_wiki/create_and_configure_set-gid_directories_for_collaboration.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)