On Sat, Mar 10, 2001 at 11:24:54AM +1100, Bernhard Lüder wrote:
> Hi,
> 
> I was wondering:
> 
> What is the difference in the first digit between:
> 
> chmod 1777
>       ^
> and
> 
> chmod 0777
>       ^

Bernhard,

This sets the sticky bit. Taken from the chmod info page:

  3. save the program's text image on the swap device so it will load
     more quickly when run (called the "sticky bit").  For directories
     on some systems, prevent users from removing files that they do
     not own in the directory; this is called making the directory
     "append-only".

/tmp should have the sticky bit set.

I'm not sure that any modern Unix honours the bit on a binary...

        Stephen

-- 
Stephen Norris    [EMAIL PROTECTED]
Farrow Norris Pty Ltd   +61 417 243 239

PGP signature

Reply via email to