mkdir -m 777 /share
[public]
path = /share
writable = yes
create mask = 1444
directory mask = 1777
需求要求可讀可寫不可删:
1、關閉防火牆
2、關閉SeLinux
3、yum install samba
service smb status
systemctl status smb
systemctl start smb
設定smb開機啟動
systemctl enable smb
Samba的主配置檔案為/etc/samba/smb.conf
請注意,配置檔案前面必須用空格,不可以用tab鍵