[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-user
Subject: Re: [gentoo-user] local shared directory
From: Neil Bothwick <neil () digimed ! co ! uk>
Date: 2016-04-23 14:56:10
Message-ID: 20160423155610.48867b0c () digimed ! co ! uk
[Download RAW message or body]
On Sat, 23 Apr 2016 14:42:56 +0200, hw wrote:
> > 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 $#
That should actually be $@/$#
> PS: How about subdirectories? The users sharing the directory can
> create and delete them as well, and files within them; yet incron
> ignores what happens in subdirectories.
That's a prpblem, maybe ACLs would be more suitable after all.
> Using 'chmod -R g+w $#' isn't very appealing, and how safely does it
> handle file names?
What is unappealing about it? I've never had any problem with file names,
but I don't use odd ones. You could quote the $@/$# just in case,
although if there's no shell expansion taking place it shouldn't be
necessary.
--
Neil Bothwick
Hyperbole is absolutely the worst mistake you can possibly make
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic