Re: Forcing file/directory properties

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

 



=>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.

Files which you own can only be deleted by you if the directory that you 
created it in has the sticky bit set. The most frequent example of that is 
/tmp.

drwxrwxrwt  11 root root 4096 Sep 20 12:59 /tmp

Also, from the stat(2) page:

The set GID bit (S_ISGID) has several special uses: For a directory it 
indicates that BSD semantics is to be used for that directory: files 
created there inherit their group ID from the directory, not from the 
effective gid of the creating process, and directories created there will 
also get the S_ISGID bit set.  For a file that does not have the group 
execution bit (S_IXGRP) set, it indicates mandatory file/record locking.

The only other attributes that there are on a file besides protection mask 
is owner and group. Between UPG (User Private Groups), setgid on a 
directory, and proper management of umask, you should be able to 
accomplish whatever you want.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

-- 
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