I am struggling with setting proper permissions for files:
drwx------ 2 moderator moderator 4096 Sep 16 11:02 moderator  
drwxrwx--- 2 root      shared    4096 Sep 16 11:15 shared     
drwx------ 2 user1     user1     4096 Sep 16 11:02 user1      
drwx------ 2 user2     user2     4096 Sep 16 11:02 user2      
I would like user1 and user2 have access to their directories plus shared and moderator needs to have access to all of those directories. I set private directories permissions (chmod 700 for moderator, user1 and user2 directories) user1, user2 and moderator are in the same group: shared
I thought it would be good idea to set full group permissions for shared directory, change it primary group to root and add user moderator to it but it seems not to work
Is it possible to set those permissions in simple way?