Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: deny deleting a file for users

From: Godwin Stewart <gstewart(at)spamcop.net>
Date: Tue Jun 03 2003 - 13:36:01 EDT

And Thus Spake terry white <twhite@aniota.com> (on Sat, 31 May 2003 15:47:17 -0700 (PDT)):
> ... "removing parts of this file or append text" is in opposition to 'not

Actually, one can exist without the other.

If user A has write permissions on the DIRECTORY containing file B, but not on the file itself, then the user can DELETE the file but not modify it.

OTOH, if user A does NOT have write permission to the directory, then they CANNOT delete (nor create) files in the directory. All you have to do is make sure there is a null-length file already in the directory, and the user will be able to read/write it (provided it has the right permissions) but NOT delete it.

-- 
G. Stewart   --   gstewart@bonivet.net -- gstewart@spamcop.net
Registered Linux user #284683
---------------------------------------------------------------
Some days you are the bug; some days you are the
windshield.
Received on Tue Jun 3 14:48:35 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:01:20 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library