Results 1 to 1 of 1
I have a Ubuntu file server with a mix of 30+ users ( mix of windows and linux ).
All are members of the same group.
All need read write ...
- 02-19-2010 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 53
'owner only' deletion command question
I have a Ubuntu file server with a mix of 30+ users ( mix of windows and linux ).
All are members of the same group.
All need read write create access.
I want to prevent deletion of certain key folders.
I have gone the route of trying to allow only the owner of the file the right to delete.
Thus I have used the 'sticky bit' with the following syntax.
Assuming 'data' is the parent folder of all the users folders and files.
sudo chmod 777 data
sudo chmod +t data
since there are subfolders within 'data' I have gone one further step
sudo chmod +t -R data ( for recursive permissions )
This works for all existing folders and files.
If someone now creates a new subfolder let's say called 'subfolderA' within the file structure then this is protected, however any subfolders created within 'subfolderA' are not.
Without periodically running the chmod +t -R data command in order to 'extend the depth of folder protection, is there a way to achieve permanent full depth protection for new subfolders created?


Reply With Quote