Grant a user access to directories shared by root (mod: 770)

Posted by Paul Dinham on Super User See other posts from Super User or by Paul Dinham
Published on 2013-11-10T01:31:40Z Indexed on 2013/11/10 3:59 UTC
Read the original article Hit count: 412

I want to grant a user (username: paul) access to all directories shared by root with mod 770. I do it this way:

groups root
(here comes a list of groups in which root user is)

usermod -a -G group1 paul
usermod -a -G group2 paul
usermod -a -G group3 paul
...

All the 'group1', 'group2', 'group3' are seen in the group list of root user.

However, after adding 'paul' to all groups above, he still can not write to directories shared by root user with mod 770.

Did I do it wrongly?

© Super User or respective owner

Related posts about linux

Related posts about terminal