bug-coreutils
[Top][All Lists]
Advanced

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

Re: Bug


From: Eric Blake
Subject: Re: Bug
Date: Tue, 21 Aug 2007 20:23:19 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Sonali Jha on 8/21/2007 8:15 PM:
> $ chmod 000 unix.txt
> meaning that neither owner nor group and others have permission to read, 
> write execute.
> when I deleted the unix.txt file, it simply got deleted.....
> 
> Please clear when owner has no permissions , how file get deleted.

This is not a bug.  Permission to delete a file is not determined by the
permissions of the file, but by the permissions of the directory that the
file resides in.  Typically, if you don't want to delete your own files,
you would change the directory to read-only (chmod a-w); if you don't want
others to delete your files from a public directory, such as /tmp, then
the directory should have the restricted deletion flag set (chmod +t).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGy54W84KuGfSFAYARAmNbAJ9oxD10F3do9sErEfpXYd0NX9FHywCdGn6n
iwhjETEJbrWWeI4ayi4Q9iw=
=E+gL
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]