Re: [vox-tech] Write but not delete...
In that case, all I can think of is somehow automatically running chattr +i on the file right after the upload. From the man page for chattr, "A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file, and no data can be written to the file." Maybe someone else has an easier or better solution... -Eric On Tue, Jun 22, 2010 at 02:48:21PM -0700, Richard S. Crawford wrote: > Actually, I was apparently misinformed as to the nature of the request. What > is really wanted is for users to be able to upload a file into a given > directory, but NOT modify, rename, or delete them, even if they own the > file. > > > -- > Sláinte, > Richard S. Crawford (rich...@underpope.com) > http://www.underpope.com > Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com) > ___ > vox-tech mailing list > vox-tech@lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Write but not delete...
Actually, I was apparently misinformed as to the nature of the request. What is really wanted is for users to be able to upload a file into a given directory, but NOT modify, rename, or delete them, even if they own the file. -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com) ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Write but not delete...
Take a look at the sticky bit: http://en.wikipedia.org/wiki/Sticky_bit. In Linux, it means "files in [the] directory may only be unlinked or renamed by root or their owner." chmod +t dirname -Eric On Tue, Jun 22, 2010 at 01:17:29PM -0700, Richard S. Crawford wrote: > I don't think this is possible, but I promised I would look into it. > > Is it possible to set the permissions on a directory such that users can add > and modify files, but not delete them? > > > -- > Sláinte, > Richard S. Crawford (rich...@underpope.com) > http://www.underpope.com > Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com) > ___ > vox-tech mailing list > vox-tech@lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech