[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 21 Aug 2007 20:23:19 -0600
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:18.104.22.168) Gecko/20070728 Thunderbird/22.214.171.124 Mnenhy/0.7.5.666
-----BEGIN PGP SIGNED MESSAGE-----
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
-----END PGP SIGNATURE-----
- Bug, Sonali Jha, 2007/08/21