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
pgpU1V2Ir7M09.pgp
Description: OpenPGP digital signature