Reputation: 3036
I want to give a certain user full rwx permission on a directory (recursively), including any files or subdirectories that may be created in the future. I do NOT want to make them the owner of that directory. What syntax should I use? Thanks - Debbie
Upvotes: 0
Views: 65
Reputation: 69218
Because you want newly created files and directories in this tree to follow the same rule you need
$ chgrp thegrp thedir
$ chmod g+rwxs thedir
Upvotes: 0
Reputation: 360702
You've got two choices:
a) the user is in the group that owns the directory tree
chmod -R g+rwx thedir
b) the user is NOT in the group that owns the directory tree
chmod -R o+rwx thedir
Upvotes: 1