ubuntu下设置
samba:
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo vim /etc/samba/smb.conf
[shares]
comment = Home Directories
browseable = yes
path = /home/xxxx
read only = no
create mask = 0755
directory mask = 0755
valid users = xxxx
设置用户和密码
sudo smbpasswd -a xxxx ##与用户名一致,可以避免修改文件时的权限问题
sudo /etc/init.d/samba restart
Windows端
右击我的电脑 –> 映射网络驱动器 –> 填入对应