Different permissions on the folders tree
by WhiteTiger from LinuxQuestions.org on (#59TEF)
I am confused on how to correctly assign the rights of a folder.
Until now I have been working on individual folders belonging to different users.
Now I have to give different permissions on folders in the same tree.
This is quite common in an office where there are different levels of responsibility.
I give an example with this scenario:
/Company/Commercial
/Company/Accounting
/Company/Archive
/Company/Labs
UserMaster is the owner of the whole tree, so the folders are now marked UserMaster:UserMaster.
John (member of groups Company, Accounting, Commercial, Tech) must see all folders and be able to write into them.
In Win10 it must see the shared folders Company, Commercial, Accounting, Archive and Labs.
Jeff (member of group Commercial) must only be able to see the Commercial folder and be able to write into it.
Mary (member of group Accounting) must only be able to see the Accounting and Archive folders and be able to write into them.
Donald (member of group Tech) must only be able to see the Labs folder and be able to write into it.
Using either Linux or Samba Groups I can associate users in one or more groups, but then on the folder I can only give permissions on a single Owner and a single Group, leaving the permissions for "Others" at zero.
So, I can not properly attribute permissions.
Many thanks in advance for any advice.


Until now I have been working on individual folders belonging to different users.
Now I have to give different permissions on folders in the same tree.
This is quite common in an office where there are different levels of responsibility.
I give an example with this scenario:
/Company/Commercial
/Company/Accounting
/Company/Archive
/Company/Labs
UserMaster is the owner of the whole tree, so the folders are now marked UserMaster:UserMaster.
John (member of groups Company, Accounting, Commercial, Tech) must see all folders and be able to write into them.
In Win10 it must see the shared folders Company, Commercial, Accounting, Archive and Labs.
Jeff (member of group Commercial) must only be able to see the Commercial folder and be able to write into it.
Mary (member of group Accounting) must only be able to see the Accounting and Archive folders and be able to write into them.
Donald (member of group Tech) must only be able to see the Labs folder and be able to write into it.
Using either Linux or Samba Groups I can associate users in one or more groups, but then on the folder I can only give permissions on a single Owner and a single Group, leaving the permissions for "Others" at zero.
So, I can not properly attribute permissions.
Many thanks in advance for any advice.