安装smb服务

cat >> /etc/samba/smb.conf <<END
[share]
    comment = share
    path = /data/share
    writable = yes
END

useradd share
smbpasswd -a share
service smb restart

service smbd.service restart
chkconfig smb on
chkconfig --list|grep smb

systemctl restart smbd.service 
systemctl enable smbd.service 

posted @ 2022-04-07 15:33  chenzechao  阅读(76)  评论(0)    收藏  举报