linux的系统为centos7
1、安装samba软件
yum -y install samba samba-client
修改配置文件
vim /etc/samba/smb.conf
主要是在文件的最后增加共享文件夹
[shares]
path = /data/shares
security = share
browseable = yes
public = yes
writeable = yes
guest ok = yes
详细的信息可以查看
https://blog.csdn.net/weixin_40806910/article/details/81917077
其他的基本不用修改。关闭防火墙和selinux
systemctl stop firewalld
setenforce 0
设置用户和相应的密码
先确认test用户存在,然后再运行下去
pdbedit -a -u test
设置相应的密码
这时候可以在windows下连接
打开我的电脑,在搜索看输入\IP地址就可以了
https://jingyan.baidu.com/article/574c521911f0866c8d9dc1a3.html