【发布时间】:2020-11-01 19:09:50
【问题描述】:
所以我试图让 Caja 在另一台计算机上使用 Samba 共享。这是我目前所拥有的。
我已启用 SMB 对 Caja 的访问
sudo apt-get install caja-share
我还不能访问 samba 共享驱动器。
【问题讨论】:
-
sudo apt install gvfs-backends
标签: linux-mint samba
所以我试图让 Caja 在另一台计算机上使用 Samba 共享。这是我目前所拥有的。
我已启用 SMB 对 Caja 的访问
sudo apt-get install caja-share
我还不能访问 samba 共享驱动器。
【问题讨论】:
标签: linux-mint samba
好的,到这里,我需要在另一台计算机上安装 samba。
sudo apt-get update
sudo apt-get install samba
接下来将 samba 用户添加到 samba 计算机。这会添加一个用户。
sudo smbpasswd -a comp1
然后启用新用户。
sudo smbpasswd -e comp1
现在您想编辑您的 samba 配置以启用 Caja 访问。
sudo gedit /etc/samba/smb.conf
[global]
admin users = comp1
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
unix charset = UTF-8
server min protocol = NT1
ntlm auth = yes
client min protocol = NT1
client max protocol = SMB3
case sensitive = no
bind interfaces only = yes
接下来编辑配置中的共享文件夹设置。
[share]
path = /path/to/shared/folder
available = yes
#valid users = comp1
read only = yes
writeable = no
hosts allow = 192.168.1.2 192.168.1.3
hosts deny = 0.0.0.0/0
public = yes
browseable = yes
最后重新启动 Samba 以使更改生效。
sudo systemctl restart smbd nmbd
您可能必须允许 Samba 穿过您的防火墙。
sudo ufw allow samba
完成后,在您的 Caja 中浏览网络以查找您的共享驱动器。现在应该可以访问了。
【讨论】: