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

Re: rm files owned by root?

On Wed, Dec 29, 2004 at 08:22:08PM +0100, dekkker wrote:
> I'm seriously troubled by behaviour of my system I just encountered:
> If i do (as root):
> touch /home/user/a 
> Then (as user);
> rm /home/user/a
> It asks if I want to remove this file, since it's write protected. If I say "y", then the file gets deleted. But it shouldn't be! Should it? 
> (Sorry if this is a dumb question.)

User can delete files in his own directory cause he has rwx permissions, so
he can read files from that directory, list that directory and _remove_
files from that directory. 

So this behaviour is usual.


      _      Bartosz Fenski | mailto:fenio@o2.pl | pgp:0x13fefc40 | IRC:fEnIo
    _|_|_     32-050 Skawina - Glowackiego 3/15 - w. malopolskie - Polska
    (0 0)          phone:+48602383548 | Slackware - the weakest link
ooO--(_)--Ooo  http://skawina.eu.org | JID:fenio@jabber.org | RLU:172001

Attachment: signature.asc
Description: Digital signature

Reply to: