安装samba
sudo apt update
sudo apt install samba -y
打开配置文件
sudo nano /etc/samba/smb.conf
[nginx]
path = /etc/nginx
browseable = yes
writable = yes
valid users = your_username
read only = no
添加smba的账号和密码
sudo smbpasswd -a your_username
重启
sudo systemctl restart smbd
评论区