Results 1 to 2 of 2
Is their a way to set specific permissions on a parent folder, but allow read/write to the child folders? For instance, my company uses Debian for medical charting on our ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-24-2013 #1
- Join Date
- Apr 2013
Lock the parent folder only
- 04-25-2013 #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
Absolutely that make sense. First create a group that users who have permissions to access these folders (the root ones), and write permissions to the child folders, then set group ownership to all the folders to the group (the owner should still be root, or some admin account). Then, set the directory permissions to the root ones to read-only for group and others. For the client folders, set group permissions to read-write-execute, and others to no-access. The results are this:
- The write bit allows the affected user to create, rename, or delete files within the directory, and modify the directory's attributes
- The read bit allows the affected user to list the files within the directory
- The execute bit allows the affected user to enter the directory, and access files and directories inside
To do this:Code:
chmod o-wx rootdirs clientdirs chmod o+r rootdirs clientdirs chmod g+rx rootdirs chmod g+rwx clientdirsSometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!