1 |
Am Donnerstag, 3. Juli 2008 schrieb Florian Philipp: |
2 |
|
3 |
> Then there might be a common folder for all users in a specific group |
4 |
> as a simple way of sharing files. These shall be accessible by every |
5 |
> user in the group but by none else, so for the user phil_fl and the |
6 |
> group users: chown phil_fl:users; umask 0007. |
7 |
|
8 |
Forget umask, you have to adjust the permissions of that _directory_ |
9 |
accordingly: |
10 |
|
11 |
chmod 770 groupdir |
12 |
|
13 |
and, as others already wrote, eventually set the SGID bit so that all files |
14 |
within are owned by the group you want. |
15 |
|
16 |
You can later add permissions for other users or groups by using ACLs, see man |
17 |
pages of setfacl and getfacl. |
18 |
|
19 |
HTH... |
20 |
|
21 |
Dirk |