Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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.