Forcing file/directory properties

Anne Wilson cannewilson at tiscali.co.uk
Wed Sep 20 18:45:22 UTC 2006


On Wednesday 20 September 2006 17:54, James Wilkinson wrote:
> Anne Wilson wrote:
> > I know there is a way to force files to take on the
> > properties/permissions of the directory in which it lives, but I can't
> > remember how to do it, and can't find my notes.  I presume it's done with
> > chmod, but the man page for chmod is totally opaque to me.
>
> Not only is it obscure, it doesn't even *mention* the use on
> directories.
>
> Any directory with the setgid bit set (e.g. by chmod 2775) will have any
> files created in it automatically take the directory's group ID. This is
> useful for "project" directories -- you create a suitable group for the
> project, chgrp and chmod it appropriately, and anything anyone creates
> in there will be owned by the group.
>
> This doesn't work for the setuid bit, and as far as I know there's no
> way to enforce permissions on a per-directory basis.
>
> See the traditional Red Hat explanation of the "user private group"
> scheme that Fedora uses:
> http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/s1-users-
>groups-private-groups.html
>
> Hope this helps,
>
It does, thanks.  That's what I was trying to recall.

Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060920/09f39040/attachment-0001.sig>


More information about the fedora-list mailing list