-----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 [EMAIL PROTECTED] -----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----- _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils