I have a samba share (ArchLinux with kernel Linux comp001 3.18.7-2-ARCH #1 PREEMPT Thu Feb 12 12:53:57 MST 2015 armv6l GNU/Linux and samba version Samba version 4.1.16)mounted in /mnt/data/, that is working just fine:/mnt/data/|-- 3145_Tv.dtv|-- 3145_Ubat.dtv|-- 3145_h.dtv`-- setting    `-- map.iniNow, I must upgrade samba configuration to following demands:Directory setting must be accessible. THIS IS WORKING.Directory setting must have disabled operations of rename and delete. WHATEVER I DO I HAVEN'T SUCCEDED IN THIS TASK.Here is /etc/samba/smb.conf configuration file chunk that relates to shares:[data]    security = user    comment = PiDaq data    read only = no;   locking = no    path = /mnt/data;    guest ok = yes    create mask = 0222    directory mask = 0033[settings]    security = user    read only = yes    path = /mnt/data/settings    browseable = no;    create mask = 0222;    directory mask = 0033Here is also output of smbstatus command:Samba version 4.1.16PID     Username      Group         Machine                        -------------------------------------------------------------------1075      user         user         192.168.0.120 (ipv4:192.168.0.120:51273)Service      pid     machine       Connected at-------------------------------------------------------data         1075   192.168.0.120  Fri Feb 13 11:30:29 2015Locked files:Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time--------------------------------------------------------------------------------------------------1075         1002       DENY_NONE  0x100081    RDONLY     NONE             /mnt/data   .   Fri Feb 13 11:30:28 20151075         1002       DENY_NONE  0x100081    RDONLY     NONE             /mnt/data   .   Fri Feb 13 11:31:04 20151075         1002       DENY_NONE  0x100081    RDONLY     NONE             /mnt/data   setting   Fri Feb 13 11:31:04 2015How do I accomplish task 2? Is this samba question at all or is this os permissions problem, becuase I am getting nowhere with this ...
samba share subdirectory prevent rename/delete operation
permissions;arch linux;samba;file sharing