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 am using CentOS 5.x. I would like to give a user permission to write on the /home directory. Do I have to make it a sudoer? Or is there any other better way for that?

share|improve this question
Perhaps you should explain a little bit more why the user needs to access the /home directory, it is not usual and can be a serious security risk. – jhcaiced Jan 6 '12 at 12:58
@jhcaiced +1. To share data safely between users, make sure they belong to a common group and grant permissions to this group, to write to the shared directory owned by that group. – user111228 Jan 6 '12 at 15:09
A bit more info - if you give them permission to add to this dir, they can delete from this dir too, meaning they can wipe out every user here, not something that is suggested – Rich Homolka Jan 6 '12 at 16:29
well...its like i want this user to be a domain manager, who can access all the domains and edit it from a website, kind of a whm thing, just my own. – Nandini Jan 8 '12 at 7:21

It is not advised to give a user besides root access to the whole /home dir. Ask yourself if it's necessary to have access to /home.

You can:

  1. make the user a member of the group set on /home (default is root)

  2. give everyone access to /home with chmod (most certainly not advised!)

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.