sam服务配置
服务端 wangxiaolan 172.25.0.11
客户端 chenwanli 172.25.0.111
yum安装smb服务
[root@wangxiaolan ~]#yum -y install smb-*
[root@wangxiaolan ~]#vim /etc/samba/smb.conf
改成 workgroup = STAFF
最后加上
[common]
path = /common
browseable = yes
valid users = natasha
[root@wangxiaolan ~]#mkdir /common
防火墙处理
[root@wangxiaolan ~]#systemctl mask iptables eptables
[root@wangxiaolan ~]#firewall-cmd --addrich-rule 'rule family=ipv4 source address=172.25.0.0/24 service name=samba accept' --permanent
[root@wangxiaolan ~]#firewall-cmd --addrich-rule 'rule family=ipv4 source address=172.25.0.0/24 service name=samba-client accept' --permanent
给natasha用户添加smb密码
[root@wangxiaolan ~]#smbpasswd -a natasha
给natasha设