配置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