使用apt安装samba1apt install samba -y 部署samba1234567891011echo '[share]comment = sharepath = /rootpublic = yeswritable = yesdirectory mask = 0775create mask = 0775valid users = rootwrite list = rootbrowseable = yesavailable = yes' > /etc/samba/smb.conf 重启samba1systemctl restart smbd