apt-get update
apt-get upgrade
apt-get install samba
mkdir /home/cnshafs
chmod 777 /home/cnshafs
vim /etc/samba/smb.conf
末尾添加:
[share]
path = /home/cnshafs
available = yes
browseable = yes
public = yes #是否需要账户密码登录
writable = yes
groupadd tsi -g 6000
useradd tsi -u 6000 -g 6000 -s /sbin/nologin -d /dev/null
touch /etc/samba/smbpasswd
smbpasswd - a tsi
service smbd restart