|
|||||||||||
|
Re: deny deleting a file for users.. trying a solution
From: Wallwork, Nathan <nwallwo(at)pnm.com>
Date: Tue Jun 03 2003 - 13:13:12 EDT
I suspect you want more than that, specifically, you probably want existing mail clients to be able to modify the file in the method they currently use, which may involve steps like these when deleting messages: open existing read from existing file rename existing file to temp open new file with old name write to new file close new file close renamed file unlink renamed file This looks like a user education problem, and sounds like you are trying to keep the users from shooting themselves in the foot, presumably by misuse of rm. Restricting access to the system unlink() function without breaking anything will be difficult. Assuming you've already found `alias rm='rm -i'` insufficient, have you considered replacing /bin/rm with a script that refused to remove particular files? Coddling users by restricting access to /bin/rm, or replacing it with a script that refuses to remove particular files seems managable, if it is misuse of /bin/rm that concerns you, and not misuse of unlink(). Received on Tue Jun 3 14:01:51 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:01:20 EDT |
||||||||||
|
|||||||||||