Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from stackoverflow.com Nov 20 '12 at 7:16

This question came from our site for professional and enthusiast programmers.

    
The keyword is "group". – full.stack.ex Oct 30 '12 at 9:36
up vote 3 down vote accepted

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.

share|improve this answer
chown -R user2 /usr/local/example_directory
share|improve this answer
    
Then user1 loses his permissions. Not what is wanted, I think. – glglgl Oct 30 '12 at 9:34
    
Oh, would you mind to put user1 & user2 into same group? Then you can do chmod g+w -R /usr/local/example_directory – nevermind Oct 30 '12 at 9:36
    
That could be one way to go... – glglgl Oct 30 '12 at 9:37
    
The best I can figured out, sorry for my silly answer. – nevermind Oct 30 '12 at 9:38
    
Thanks alot for your answers. Gonna try this. – user1785085 Oct 30 '12 at 9:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.