Re: Users, Groups, and Sticky Bits, oh my!

From: John Nichel (john_at_kegworks.com)
Date: 06/17/04

  • Next message: Erik Espinoza: "Re: Yum not updating my (FC1) system - libcom_err.so.3"
    Date: Thu, 17 Jun 2004 15:53:07 -0400
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Steffen Kluge wrote:
    > On Thu, 2004-06-17 at 05:38, John Nichel wrote:
    >
    >>Let's say I have a directory named 'bob', owned by 'foo' and in the
    >>group 'bar', with rwxrwxr-w permissions. How can I make it to where
    >>when a file/directory is created in the 'bob' directory is owned by
    >>'foo' and in the group 'bar' with permissions of 664/775 no matter who
    >>creates the file/directory?
    >
    >
    > You can't do anything about the owner of the new files/directories,
    > it'll be whoever created them. However, you can propagate the group
    > ownership by setting the parent directory g+s, as in "chmod g+s bar" or
    > "chmod 2775 bar".
    >
    > The file mode will not propagate to newly created files/directories,
    > it'll be determined by the umask of the creator.
    >
    > Cheers
    > Steffen.
    >
    >

    Is there a way to set the umask for directories created different from
    the umask of files created? If I make a user's umask 113, both files
    and directories created by that user will have rw-rw-r, which is great
    for files, but sucks for directories.

    -- 
    John C. Nichel
    KegWorks.com
    716.856.9675
    john@kegworks.com
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Erik Espinoza: "Re: Yum not updating my (FC1) system - libcom_err.so.3"