[100096] in RedHat Linux List
Re: Re [Summary] removing files owned by others
daemon@ATHENA.MIT.EDU (Thomas Ribbrock \(Design/DEG\))
Wed Nov 18 12:56:23 1998
Date: Wed, 18 Nov 1998 17:54:13 +0000
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: redhat-list@redhat.com
Mail-Followup-To: redhat-list@redhat.com
In-Reply-To: <199811181640.QAA32735@boober.lineone.net>; from brichardson@lineone.net on Wed, Nov 18, 1998 at 04:40:30PM +0000
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
brichardson@lineone.net writes:
> To be precise, a user can delete from _any_ directory
> for which they have write access, *whether they own it
> or not*. Think about it: a directory is really a
> special kind of file. Adding/removing files in a
> directory entails re-writing the directory-file.
Ok, while we're at being precise: The above is true as long as the "t" bit
is not set. Example: /tmp on many systems has the permissions drwxrwxrwt -
that means anybody can write to that directory, but only the owner of a file
(and root, obviously) can remove a file.
The info page of GNU chmod states that the "t" bit has this function on
"some systems", so I assume it's not the same on all *nixes. I know for sure
that it works under SunOS/Solaris.
Another two pence,
Thomas
--
"Look, Ma, no obsolete quotes and plain text only!"
Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.