Changing permissions for specific folder

1

i need some help. I'm using Fedora 15. I have 2 users: user1 and user2 and directory in /usr/local/example_directory. Now for this directory owner is user1 and other users can only read this. I need to add specific permissions for user2 so it can remove and modify this directory recursively. How i can do it? P.S.: Sorry for bad language.

user1785085

Posted 2012-10-30T09:27:14.497

Reputation:

The keyword is "group". – full.stack.ex – 2012-10-30T09:36:47.780

Answers

3

You could go 2 ways:

  1. via ACLs, where you can have several users with special permissions: see man setfacl.

  2. via a special group: Put all files into a group example_admins, make them group-writable and add user1 and user2 into that group.

glglgl

Posted 2012-10-30T09:27:14.497

Reputation: 1 327

0

chown -R user2 /usr/local/example_directory

nevermind

Posted 2012-10-30T09:27:14.497

Reputation: 1

Then user1 loses his permissions. Not what is wanted, I think. – glglgl – 2012-10-30T09:34:40.997

Oh, would you mind to put user1 & user2 into same group? Then you can do chmod g+w -R /usr/local/example_directory – None – 2012-10-30T09:36:11.570

That could be one way to go... – glglgl – 2012-10-30T09:37:10.900

The best I can figured out, sorry for my silly answer. – None – 2012-10-30T09:38:35.250