如何在 Raspberry Pi 上允许远程 SMB/CIFS 访问 /home/pi
首先,使用以下命令安装 samba
install_samba.sh
sudo apt -y install samba然后将以下内容追加到 /etc/samba/smb.conf
smb.conf
[pi]
comment = pi
path = /home/pi
writeable = yes
browseable = yes
public = yes
create mask = 0644
directory mask = 0755
force user = pi最后重启 samba:
restart_smbd.sh
sudo systemctl restart smbd现在你的 /home/pi 将可通过 SMB 访问(包括写访问)。
Check out similar posts by category:
Linux, Raspberry Pi
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow