folders and files permissions please help - Ask Ubuntu


now have 3 users: x,y,z

and 3 folders a,b,c

i want make user x have full permission in 3 folders , containing files.

i want make user y have write+read+execute permissions on b folder , contents only

i want make user z have write+read+execute permission on c folder , contents only

how can it?

for need assume x member of group g , neither y nor z member of same group. can set (group) ownership , access permissions follows:

chown -r x chown -r y:g b chown -r z:g c  chmod -r u+rwx,go-rwx chmod -r ug+rwx,o-rwx b c 

this removes read , traversal permissions other users (aside x, y, , z) on 3 directories well.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User