I need to create a directory where a user can create and work with files but not delete them. Other users can do anything in that directory. I have a recycle bin set up but I must make it impossible to delete the files. I have tried setting the sticky bit on the directory, and the "delete readonly" option of smb.conf to "no", but the user can always delete the files ...
Hi` Do you have acl enabled? Venlig Hilsen (Best Regards) stud. med. Rune T?nnesen The paradox is now fully established that the utmost abstractions are the true weapons with which to control our thought of concrete facts. -A.N. Whitehead On Sep 12, 2006 11:47 AM, Toni Casueps <casueps@hotmail.com> wrote:> > I need to create a directory where a user can create and work with > files but > not delete them. Other users can do anything in that directory. I have > a > recycle bin set up but I must make it impossible to delete the files. > I have tried setting the sticky bit on the directory, and the "delete > readonly" option of smb.conf to "no", but the user can always delete > the > files ... > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
Hi, I have tried using the "chattr +i" to the files to solve the same issue, but its getting more complicated in terms of management, and if I do the same at the directory level, no one can create new files to that directory, is there any better to achieve the same?? I have a common directory which everyone can access, but its becoming a problem when people delete the files and remain untraced as samba logging does not log the user file activity. Thanks in advance. Pavan. -----Original Message----- From: samba-bounces+p.krishna=inlink.com.au@lists.samba.org [mailto:samba-bounces+p.krishna=inlink.com.au@lists.samba.org] On Behalf Of Toni Casueps Sent: Tuesday, September 12, 2006 7:47 PM To: samba@lists.samba.org Subject: [Samba] allow creating files but not deleting I need to create a directory where a user can create and work with files but not delete them. Other users can do anything in that directory. I have a recycle bin set up but I must make it impossible to delete the files. I have tried setting the sticky bit on the directory, and the "delete readonly" option of smb.conf to "no", but the user can always delete the files ... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
as long as you are the owner of the file you can delete it. you can do this by setting the sticky on the parent directory and add "inherit owner = yes" on your share section. in this case you can no longer delete,rename a file but can create. for other users that can do anything, you can list them in "admin users = ". warren