hi all, i have problems with windows clients (XP). i want files with readonly flag to not be allowed to delete delete readonly = no ...works with linux clients but on windows you can delete files anyway. i'll be thankful for any hint greetings, rado.
Jeremy Allison
2007-Apr-17 20:44 UTC
[Samba] delete readonly = no ..not working on windows
On Tue, Apr 17, 2007 at 09:56:23PM +0200, xrado wrote:> hi all, > > i have problems with windows clients (XP). > i want files with readonly flag to not be allowed to delete > > delete readonly = no ...works with linux clients > > but on windows you can delete files anyway.I just checked this with 3.0.25rc2 (the current SAMBA_3_0_25 tree) and it works as expected. Jeremy.
i tried with samba 3.0.22 and 3.0.24 and not working or i have something misconfigurated when i copy file to share it have -rwxrw---- after flaging it readonly become -r-xr----- and i can still delete it with windows explorer any idea why? Jeremy Allison wrote:> On Tue, Apr 17, 2007 at 09:56:23PM +0200, xrado wrote: > >> hi all, >> >> i have problems with windows clients (XP). >> i want files with readonly flag to not be allowed to delete >> >> delete readonly = no ...works with linux clients >> >> but on windows you can delete files anyway. >> > > I just checked this with 3.0.25rc2 (the current SAMBA_3_0_25 > tree) and it works as expected. > > Jeremy.
btw ..this is how my smb.conf looks: [global] workgroup = SAMBA netbios name = SAMBA_FS server string = Samba %v on %L security = user log level = 1 log file = /var/log/samba/smb.log max log size = 1000 time server = Yes local master = yes preferred master = Yes os level = 65 wins support = Yes hosts allow = 192.168.1. veto oplock files = /*.*db/*.*DB/ [data] comment = DATA path = /home/data valid users = @smb write list = @smb create mask = 0770 directory mask = 0770 veto files = /*.mp3/*.avi browseable = No map readonly = yes delete readonly = no vfs objects = recycle recycle:noversions = *.doc recycle:exclude_dir = /tmp recycle:exclude = *.tmp *.bak ~$* recycle:maxsize = 100000000 recycle:versions = Yes recycle:touch = Yes recycle:keeptree = Yes recycle:repository = -trash-/%U