服务器端配置过程:
1. apt-get install samba2. 修改/etc/samba/smb.conf,配置共享文件夹属性root@debian:~/jz2440# vi /etc/samba/smb.conf[global] workgroup = WORKGROUP netbios name = CentOS7 server string = Samba Server security = user encrypt passwords = yes max connections = 0 security = user [jz2440] path = /root/jz2440 writable = yes guest ok = yes write list = @root validusers = @root display charset = UTF-8 unix charset = UTF-8 dos charset = cp936
3. 添加用户并设置samba访问密码
smbpasswd -a your_samba_user_name4. 重启一下samba服务: /etc/init.d/smb restart5. windows下映射网络盘,访问。