Permission inheritance problem

Cameron Simpson cs at zip.com.au
Fri Nov 18 21:31:24 UTC 2011


On 18Nov2011 15:34, kavya <kavya.g4 at gmail.com> wrote:
| so if i set a sticky bit it applies for owner also????

1: Please DO NOT top post. Replies belong _below_ the quoted text, which
   should be trimmed to provide context and not clutter.

2: No. Reading "man chmod" (you _have_ done this already, yes?):

    RESTRICTED DELETION FLAG OR STICKY BIT
       The  restricted  deletion  flag  or  sticky  bit is a single bit,
       whose interpretation depends on the file type.  For directories, it
       prevents unprivileged  users  from  removing or renaming a file in the
       directory unless they  own  the  file  or  the  directory;  this  is
       called  the restricted  deletion  flag  for the directory, and is
       commonly found on world-writable directories like /tmp. [...]

The manual is your friend.

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

I have an inferiority complex, but it isn't a very good one.
        - Bill Garrett <garrett at cs.unc.edu>




More information about the redhat-list mailing list