Deborah Cole
Deborah Cole

Reputation: 3036

Easy linux permissions inquiry

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

Answers (2)

Diego Torres Milano
Diego Torres Milano

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

Marc B
Marc B

Reputation: 360702

You've got two choices:

a) the user is in the group that owns the directory tree

  • use group permission: chmod -R g+rwx thedir

b) the user is NOT in the group that owns the directory tree

  • use the "Everyone else" permission flagS: chmod -R o+rwx thedir

Upvotes: 1

Related Questions