LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Is there a was to prevent moving/deleting a directory within a Samba share? (https://www.linuxquestions.org/questions/linux-server-73/is-there-a-was-to-prevent-moving-deleting-a-directory-within-a-samba-share-4175694109/)

mfoley 04-22-2021 12:59 PM

Is there a was to prevent moving/deleting a directory within a Samba share?
 
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 = 2771

There 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/.

pan64 04-24-2021 03:58 AM

that is not the samba config, but the parent dir. Make that read only and that means the content cannot be deleted or moved.

michaelk 04-24-2021 01:53 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

https://www.linuxquestions.org/quest...ed-4175693737/


All times are GMT -5. The time now is 08:08 PM.