配置CentOS7 映射文件到本地windows
新建
$ yum -y install samba
添加系统用户
$ useradd username
配置smb
$ vim /etc/samba/smb.conf
添加一下内容
[username]
comment = username
path = /data/wwwroot
writable = yes
添加smb用户
$ smbpasswd -a username
重启
$ service smb restart
TIPS
确保关闭防火墙和sexLinux
windows 添加映射
计算机右键->添加网络驱动器映射:\\127.0.0.xx\username