答案1
你应该遵循https://wiki.archlinux.org/title/Samba#Enable_Usershares。它解释了步骤。但他们就在这里。跑步:
sudo mkdir /var/lib/samba/usershares
sudo groupadd -r sambashare
sudo chown root:sambashare /var/lib/samba/usershares
sudo chmod 1770 /var/lib/samba/usershares
添加/etc/samba/smb.conf
:
[global]
usershare path = /var/lib/samba/usershares
usershare max shares = 100
usershare allow guests = yes
usershare owner only = yes
跑步:
sudo gpasswd sambashare -a your_username
sudo systemctl restart smb.service
sudo systemctl restart nmb.service
注销并重新登录。
现在,在“共享”选项卡中,您可以为新共享配置权限级别。
您还可以按“显示 Samba 状态监视器”监视器并查看所有用户共享的列表,并根据需要重新配置它们: