From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] local shared directory
Date: Thu, 17 Mar 2016 18:38:56 -0400 [thread overview]
Message-ID: <CAGfcS_=SEV+oC+fC-5-sjeb+-uJGoMnaHkOLybO1d_Qto+y5LA@mail.gmail.com> (raw)
In-Reply-To: <56EB1AA5.9000303@gmail.com>
On Thu, Mar 17, 2016 at 4:59 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>
> umask is just not viable either, as a) it's global and affects all files
> a user creates and b) by definition umask is modifiable by the user
> (it's a feature to help users out so they don't need to chmod every file
> every time) and c) you can't stop them doing it (by design).
Actually, this is completely viable. Just set the default umasks to
007, and create a new group for each user as their default group (and
don't have all their home directories be owned by some users group).
This is how this sort of situation was handled long before POSIX ACLs
became common, and I know that some distros behave this way by default
for this reason (this was the case in the distro I used right before I
switched to Gentoo).
If users chmod a file then tell them not to. If you must, set up some
cron job to clean up after them.
But, you can of course do this with ACLs as well. I haven't tried
setting those up personally.
--
Rich
next prev parent reply other threads:[~2016-03-17 22:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 17:19 [gentoo-user] local shared directory hw
2016-03-17 18:11 ` Neil Bothwick
2016-03-17 19:32 ` [gentoo-user] " James
2016-03-17 20:59 ` [gentoo-user] " Alan McKinnon
2016-03-17 22:38 ` Rich Freeman [this message]
2016-03-17 23:10 ` Michael Orlitzky
2016-03-17 23:34 ` Neil Bothwick
2016-04-23 12:15 ` hw
2016-04-23 12:42 ` hw
2016-04-23 14:42 ` how to share a directory tree with files in it with multiple users (Re: [gentoo-user] local shared directory) hw
2016-04-23 15:12 ` Michael Orlitzky
2016-05-07 15:12 ` hw
2016-05-07 23:24 ` Alan McKinnon
2016-05-14 16:26 ` solved: " hw
2016-04-23 14:56 ` [gentoo-user] local shared directory Neil Bothwick
2016-05-14 16:23 ` hw
2016-05-14 22:43 ` Neil Bothwick
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='CAGfcS_=SEV+oC+fC-5-sjeb+-uJGoMnaHkOLybO1d_Qto+y5LA@mail.gmail.com' \
--to=rich0@gentoo.org \
--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