[Gllug] File permissions

Richard Jones rich at annexia.org
Wed Jun 30 13:59:46 UTC 2010


On Wed, Jun 30, 2010 at 02:36:43PM +0100, - Tethys wrote:
> On Wed, Jun 30, 2010 at 2:24 PM, Bruce Richardson <itsbruce at workshy.org> wrote:
> 
> >  1.  Only the root user can use chown to set the owning user.
> >  2.  Chown has to be used after the event.
> 
> Both true. But I did wonder if you could trigger the chown via
> inotify, which would probably achieve the desired effect.

SELinux does this for setting selinux contexts at new file creation.
It's a particularly inelegant solution there too :-(

Rich.

http://linux.die.net/man/8/restorecond

-- 
Richard Jones
Red Hat
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list