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键