# mkdir -m 777 /mnt/share


[root@mantisbt01 samba]# grep -v '#' /etc/samba/smb.conf | tail -50

[global]

        workgroup = SAMBA

        security = user


        passdb backend = tdbsam

        log file = /var/log/samba/log.%m

        max log size = 50


        setsebool -P samba_export_all_rw on


        printing = cups

        printcap name = cups

        load printers = yes

        cups options = raw

[share]

        path = /mnt/share

        writeable = YES

        create mask = 1444

        directory mask = 1777


# systemctl restart smb


可配指定用户在/mnt/share下可读写文件/文件夹,创建的文件夹可以下面读写文件,但不可删除文件和文件夹(空文件夹除外)。