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.

What is a good permission scheme for this scenario?

  • user administrator (from administrator group) has full access (read/write/execute) to /home folder
  • any other user (from users group, example: bob.users) has full access (read/write/execute) to his home folder only: /home/bob

So administrator has full rights to /home/any-user, but any-user only has full rights to his home folder.

share|improve this question
    
If "administrator" = "root", this is already the case. –  Kusalananda Oct 2 '11 at 10:55
    
Not the same thing, administrator is just a different user, from a different group –  marius Oct 2 '11 at 11:10

1 Answer 1

up vote 2 down vote accepted

Instead of chmod, see if your unix version and filesystem understand extended POSIX ACLs (Link refers to linux in specific, but basics should be applicable to other OSen that support them).

If you do, or if you can set up your system to understand them, you can simply say (for example:

setfacl -mR d:g:admingroup:rwx /home/
setfacl -mR g:admingroup:rwx /home/

And all users in the admingroup group will automatically have read/write access to everything in /home and subdirectories.

share|improve this answer

Your Answer

 
discard

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.