From: suopanki@stekt7.oulu.fi (Heikki T. Suopanki) Subject: Re: rm bug? Date: Mon, 22 Feb 1993 10:09:12 GMT
>>>>> On 22 Feb 1993 06:41:16 GMT, silly@ugcs.caltech.edu (Brad Threatt) said:
> I have come across a rather disconcerting problem, which I don't understand.
[story of how he deleted the file removed]
> So here I am, a normal user, not even in the root group, and I just deleted
> a READ ONLY file owned by root. This file is in my directory (/home/silly),
> but I still should NEVER be able to delete it, correct?
> This seems like a very bad thing.
There is no bug, that's the way it's supposed to work. You own your
home directory and you have write permission to it, so you can delete
any file.
If however the sticky bit of the directory is set , you can delete only
the files owned by you, but sticky bit should not be used in home directories.
Followups to comp.unix.questions
-Heikki