Is there a was to prevent moving/deleting a directory within a Samba share?
by mfoley from LinuxQuestions.org on (#5GYDW)
I have a samba share defined on the sharing server as:
Code:[public]
path = /mnt/RAID/public
hide dot files = yes
hide files = /Outlook/outlook/~*/
readonly = no
locking = yes
public = yes
# writeable = yes
# browseable= yes
printable = no
create mask = 0660
force user = ohprso
force group = ohprs
force create mode = 0660
directory mask = 2771There are subdirectories under /mnt/RAID/public, e.g. /mnt/RAID/public/Staff/. Is there any way with the samba config to prevent these subdirectories from being moved off the samba share or otherwise deleted? Users still need access to create sub-sub folders which may be deleted or moved, e.g. /mnt/RAID/public/Staff/Jane/.


Code:[public]
path = /mnt/RAID/public
hide dot files = yes
hide files = /Outlook/outlook/~*/
readonly = no
locking = yes
public = yes
# writeable = yes
# browseable= yes
printable = no
create mask = 0660
force user = ohprso
force group = ohprs
force create mode = 0660
directory mask = 2771There are subdirectories under /mnt/RAID/public, e.g. /mnt/RAID/public/Staff/. Is there any way with the samba config to prevent these subdirectories from being moved off the samba share or otherwise deleted? Users still need access to create sub-sub folders which may be deleted or moved, e.g. /mnt/RAID/public/Staff/Jane/.