Gentoo Archives: gentoo-user

From: Dirk Heinrichs <dirk.heinrichs@××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: Filesystem permissions
Date: Fri, 04 Jul 2008 07:58:29
Message-Id: 200807040958.25428.dirk.heinrichs@online.de
In Reply to: [gentoo-user] OT: Filesystem permissions by Florian Philipp
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] OT: Filesystem permissions Dirk Heinrichs <dirk.heinrichs@××××××.de>