bug-coreutils
[Top][All Lists]
Advanced

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

Re: correction for chmod(1) man page


From: Jim Meyering
Subject: Re: correction for chmod(1) man page
Date: Thu, 13 Dec 2007 20:31:29 +0100

Alan Iwi <address@hidden> wrote:
> The man page for chmod(1) in GNU coreutils 5.3.0 states:
>
>     "When the sticky bit is set on a directory, files in that directory
>     may be unlinked or renamed only by root or their owner."
>
> You should add to this: "or by the owner of the directory".

Thanks for the report.  That's been fixed for a couple of years.
Here's the latest from coreutils-6.9.90:

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.  For regular files on some  older
       systems,  the  bit saves the program's text image on the swap device so
       it will load more quickly when run; this is called the sticky bit.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]