Can I use linux groups and file permission to permit multiple people to add modify and delete files into multiple folders and how?
For example on a local machine :
Having Alice and Bob working on foo and bar
Alice and Bob being in foo and bar linux groups foo and bar folders being root proprietary with respecting groups :
id Alice uid=1000(Alice) gid=1000(Alice) groups=1000(Alice),10(wheel),1002(foo),1003(bar) id Bob uid=1001(Bob) gid=1001(Bob) groups=1001(Bob),10(wheel),1002(foo),1003(bar) ll drwxrwsr-x 7 root foo 4096 Jan 26 09:09 foo drwxrwsr-x 7 root bar 4096 Apr 13 09:36 bar
Having Peter that can only work on foo folder and not bar folder.
id Peter uid=1002(Peter) gid=1004(Peter) groups=1001(Bob),10(wheel),1002(foo)
Is this possible to do it on linux?
I've been using the GUID bit and the sticky bit, but none of them exactly match the need.
Having Alice and Bob access to foo implies to put them on the group foo. Adding foo to their supplementary group does not produce any effect and Alice and Bob cannot access to foo folder.
Alice and Bob cannot be on foo and bar primary group at the same time, that's why I'm asking this question.
ls -loutput would be of great help.