public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: hw <hw@gc-24.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] local shared directory
Date: Sat, 23 Apr 2016 14:15:00 +0200	[thread overview]
Message-ID: <571B6744.7050905@gc-24.de> (raw)
In-Reply-To: <20160317233407.343dfb9b@digimed.co.uk>

Neil Bothwick schrieb:
> On Thu, 17 Mar 2016 18:38:56 -0400, Rich Freeman 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.
>
> I've done this with ACLs in the past, which is why I suggested it, but
> it's a pain to set up if you haven't used them before. Alan's suggestion
> of using inotify is probably simplest. Install incrond and put something
> like this in a file in /etc/incron.d
>
> /shared/dir IN_CREATE,IN_MODIFY chmod g+w $#
>
>

Thank you very much, I'll try to use incron for this.



  reply	other threads:[~2016-04-23 12:15 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
2016-03-17 23:10     ` Michael Orlitzky
2016-03-17 23:34     ` Neil Bothwick
2016-04-23 12:15       ` hw [this message]
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=571B6744.7050905@gc-24.de \
    --to=hw@gc-24.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