samba可讀可寫不可刪配置
阿新 • • 發佈:2018-03-23
samba# 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下可讀寫文件/文件夾,創建的文件夾可以下面讀寫文件,但不可刪除文件和文件夾(空文件夾除外)。
samba可讀可寫不可刪配置