I wonder if it's possible to make files creatable, but not writable or removable. So that every file is created with r--r--r--
permissions.
My current smb.conf:
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
dns proxy = no
#=== Share Definitions ===
[Anonymous]
path = /samba/anon
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody
create mask = 0444
force create mode = 0444
directory mask = 0444
force directory mode = 0444
I'm stuck with /samba/anon permissions being set to drw-rw-rw-
. If I remove the w
, users can't create files anymore, with it - files are removable. Can this dilemma be solved?
read only = no
setting? AFAIU, you want it set toyes
. mask/mode options would only affect newly-created files, not prior existing ones.w
from permissions. Again, I need users to be able to create files there, but not delete or edit them