apt-get install samba
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
mkdir -p /home/share
chmod 777 /home/share
vim /etc/samba/smb.conf
[share]
path = /home/share
browseable = yes
writable = yes
comment = smb share test
adduser smbuser
smbpasswd -a smbuser
service smbd restart
登陆账号: smbuser 密码是刚设置的密码
https://blog.youkuaiyun.com/i_chips/article/details/19191957