Re: Forcing file/directory properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgpob0EfhAypH.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux