Any user that can write to the directory can delete a file in it. If the sticky bit is set on the directory (e.g. /tmp) then a user can only delete his own files.
Juan On Thu, 5 Dec 2002, Rend, Jon (Jon) % wrote: > Date: Thu, 5 Dec 2002 10:26:56 -0500 > From: "Rend, Jon (Jon) %" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: The "rm" command and non root users > > I am new to RED-HAT Linux but I was amazed at this behavior and can't find > anything on it. > > I created some dummy files as/owned by root on my WS with only "r" > permission bit set for group and world. Then I logged into the same box as a > dumb test user with no privileges and used "rm" to remove the file and god > damn it I was given the option to remove the "write protected file" > > How do you turn this off, do I have to use the non GNU "rm". Anyone help ??? > > > Jon :-) > > agere systems > Office 651-675-3064* 1230 Northland DriveF > Cell Phone 651-253-3703 Mendota, MN 55120 > mailto: [EMAIL PROTECTED] * -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list