From: Jonathan Bradshaw (jonathan@nova.decio.nd.edu)
Date: 02/22/93


From: jonathan@nova.decio.nd.edu (Jonathan Bradshaw)
Subject: Re: rm bug?
Date: Mon, 22 Feb 1993 17:22:56 GMT

In article <1m9sicINNd8l@gap.caltech.edu> silly@ugcs.caltech.edu (Brad Threatt) writes:
>I have come across a rather disconcerting problem, which I don't understand.
>
>I create a file, crypt.b, which is read-only and owned by root and root group
>softland-94: ls -la crypt.b
>-r--r--r-- 1 root root 514 Feb 21 22:34 crypt.b
>
>So anyway:
>softland-95: whoami
>silly
>softland-96: grep silly /etc/passwd
>silly::101:6:Brad Threatt,,,:/home/silly:/bin/tcsh
>softland-97: cat /etc/group
>root::0:root
>... [other stuff deleted]
>users::6:
>... [other stuff deleted]
>softland-98: rm crypt.b
>rm: remove `crypt.b', overriding mode 0444? y
>softland-99: ls -la crypt.b
>ls: crypt.b: No such file or directory
>
>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.
>
>--
>Brad Threatt | MISSING! Single white male Jesus look-alike in blue
> | Members Only jacket. Answers to the name 'Dave Gillespie'.
>Safe sex is | Last seen with roller-skating couple in Pasadena.
>for wimps. | If found, please return to the cs10 lab immediately.

No this is normal. YOU OWN the directory and therefore have the power
to remove anything IN your home directory no matter WHO owns it.
It actually makes some sense...