On Wed, 28 May 2003, Greg Hirsch wrote: > > Slight correction: Write permission doesn't necessarily grant delete > permission. If a user has write permission on a file but not on the dir > it resides in, the user can modify the file but can't delete it. > Permissions of 755 on a directory and 777 on specific files inside it > will allow everyone to modify those files, but only the directory owner > to create or delete them.
Correct. So if the directory the file is in is writable to the user, AND the file is writable to the user then that user can delete it. But if the directory is read-only to the user, but the file is writable to that user, then the user can zap all the contents of the file. The fact of inability to delete it is then a moot point! - John T. > > -Greg > > -----Original Message----- > From: John H Terpstra [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 28, 2003 8:53 AM > To: Manuel Linder > Cc: [EMAIL PROTECTED] > Subject: Re: [Samba] Samba Directory Permissions > > > On Wed, 28 May 2003, Manuel Linder wrote: > > > Hello, > > > > I installed samba on a linux-machine is it now possible to prohibit the > > samba users from deleting and creating new directories but allow them to > > save and edit files in the directories. > > This question has been asked many times on this list. I encourage posters > to do some homework before posting repetitive questions that can irritate > some of our readers. > > If I have edit (write) capability, then I can remove all content band > write and empty file. In that case I have deleted all content! > > Under Unix - if you have write capability to a file you can delete it. > > If anyone can come up with a way around this then judging by comments on > this list, the IT industry needs you! > > > - John T. > -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
