峯言凬语 My life is brilliant~
本无意与众不同,怎奈何口味太重。
文章分类
常用标签
September 24, 2018

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

暂无评论

添加新评论