bashdnf install samba -y systemctl start smb
bashfirewall-cmd --add-service=samba --permanent setenforce 0
bashvim /etc/samba/smb.conf
追加以下内容
bash[share]
comment = share dir #可不写
path = /share #共享目录
browseable = yes
public = yes
hosts allow = * #最好这样填 不然客户找不到
bashmkdir /share
touch /share/hellosmb
cd /
chmod 777 share -R #暂时设置最高权限 可自定义
chown nobody:nobody share
重启服务并在Windows客户机测试 重启
bashsystemctl restart smb
在Windows客户机测试
打开UNC(Win+R)填入服务器ip,格式为\\<server's ip>\<directory>
结果如下
