bashdnf install samba -y systemctl start smb
bashfirewall-cmd --add-service=samba --permanent setenforce 0
bashvim /etc/samba/smb.conf
追加以下内容至smb.conf
bash[public]
comment = annoymous directory
path = /opt/public
browseable = yes
writable = yes
guest ok = yes
public = yes
hosts allow = *
bashmkdir /opt/public
chmod 777 /opt/public -R
chown nobody:nobody /opt/public
touch /opt/public/hellosmb
结果如下
测试文件操作

bashdnf install samba-client -y
bash#访问匿名目录 匿名目录直接回车无输入即可
samba-client //<server ip>/public
