public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dirk Heinrichs <dirk.heinrichs@online.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT: Filesystem permissions
Date: Fri, 4 Jul 2008 09:58:20 +0200	[thread overview]
Message-ID: <200807040958.25428.dirk.heinrichs@online.de> (raw)
In-Reply-To: <20080703174001.7066e5e3@NOTE_GENTOO64.PHHEIMNETZ>

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

Am Donnerstag, 3. Juli 2008 schrieb Florian Philipp:

> Then there might be a common folder for all users in a specific group
> as a simple way of sharing files. These shall be accessible by every
> user in the group but by none else, so for the user phil_fl and the
> group users: chown phil_fl:users; umask 0007.

Forget umask, you have to adjust the permissions of that _directory_ 
accordingly:

chmod 770 groupdir

and, as others already wrote, eventually set the SGID bit so that all files 
within are owned by the group you want.

You can later add permissions for other users or groups by using ACLs, see man 
pages of setfacl and getfacl.

HTH...

	Dirk

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2008-07-04  7:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 15:40 [gentoo-user] OT: Filesystem permissions Florian Philipp
2008-07-03 15:52 ` Alan McKinnon
2008-07-03 17:58   ` Florian Philipp
2008-07-04 14:24     ` Alan McKinnon
2008-07-04 15:03       ` Florian Philipp
2008-07-04 16:35         ` Alan McKinnon
2008-07-04 17:31           ` Florian Philipp
2008-07-04 18:08             ` Dirk Heinrichs
2008-07-04 18:22               ` Florian Philipp
2008-07-05  7:56                 ` Alan McKinnon
2008-07-04  0:05 ` Daniel Iliev
2008-07-04  7:58 ` Dirk Heinrichs [this message]
2008-07-04  8:01   ` Dirk Heinrichs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200807040958.25428.dirk.heinrichs@online.de \
    --to=dirk.heinrichs@online.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox