Re: deny deleting a file for users
From: J Norfleet (jnorfleet_at_picusnet.com)
Date: 06/02/03
- Previous message: Devdas Bhagat: "Re: deny deleting a file for users"
- In reply to: Brian Hatch: "Re: deny deleting a file for users"
- Next in thread: Brian Hatch: "Re: deny deleting a file for users"
- Reply: Brian Hatch: "Re: deny deleting a file for users"
- Reply: Stephen Samuel: "Re: deny deleting a file for users"
- Reply: Mike Hoskins: "Re: deny deleting a file for users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: Brian Hatch <focus-linux@ifokr.org>, Sandra Hernandez <sandra@fib.upc.es> Date: Mon, 2 Jun 2003 11:47:12 -0400
On Friday 30 May 2003 7:31 pm, Brian Hatch wrote:
> > I would like to know if there exist any way to deny deleting a file for a
> > user, but allow this user accessing, removing parts of this file or
> > append text?
> >
> > We have problems in our systems because some users delete theirs own
> > nsmail file without notice what they are doing.
-snip-
> The best thing I can come up with, without kernel mods or LKMs, would be
> to write a program that, as root, opens up in read mode all these files
> you don't want deleted, and then goes to sleep forever. It will have an
> open file descriptor, so when the user accidentally deletes the file,
> you can still get it back by copying it out of the /proc entry for the
> root "open all files" process, ala
>
> cp /proc/PID/fd/APPROPRIATE_FD /home/idiot/nsmail
>
>
> However this is a horrible kludge. I suggest that you take good backups
> and make them available to the users who delete their files by mistake.
> Or, let them feel the pain a few times until they stop doing it.
Create hard links. (Backup copy that changes when the original files do.)
jnorfleet
- Previous message: Devdas Bhagat: "Re: deny deleting a file for users"
- In reply to: Brian Hatch: "Re: deny deleting a file for users"
- Next in thread: Brian Hatch: "Re: deny deleting a file for users"
- Reply: Brian Hatch: "Re: deny deleting a file for users"
- Reply: Stephen Samuel: "Re: deny deleting a file for users"
- Reply: Mike Hoskins: "Re: deny deleting a file for users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]