安装 Sambashare 时出现问题

安装 Sambashare 时出现问题

当我尝试挂载我的 sambashare 时,我收到一条错误消息:没有这样的文件或目录,尽管它在我的根目录中确实存在。我尝试对共享进行某种程度的保护,以便只有本地用户才能访问。

文件夹所有权属于 samba 组。Testparm 输出正确的 .conf 位置,以及服务文件正常的消息。我的服务器角色是独立的。

The service status is:
     Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2020-09-14 12:33:50 CEST; 11s ago
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
    Process: 15309 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
   Main PID: 15355 (smbd)
     Status: "smbd: ready to serve connections..."
      Tasks: 4 (limit: 18984)
     Memory: 8.8M
     CGroup: /system.slice/smbd.service
             ├─15355 /usr/sbin/smbd --foreground --no-process-group
             ├─15358 /usr/sbin/smbd --foreground --no-process-group
             ├─15359 /usr/sbin/smbd --foreground --no-process-group
             └─15361 /usr/sbin/smbd --foreground --no-process-group

Sep 14 12:33:49 gross systemd[1]: Starting Samba SMB Daemon...
Sep 14 12:33:50 gross smbd[15355]: [2020/09/14 12:33:50.010714,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
Sep 14 12:33:50 gross systemd[1]: Started Samba SMB Daemon.
Sep 14 12:33:50 gross smbd[15355]:   daemon_ready: daemon 'smbd' finished starting up and ready to serve connections

我的配置文件如下:

[global]
#workgroup = smb
workgroup = sambashare
security = user
#map to guest = never
usershare owner only = false
#usershare allow guests = Yes
#usershare max shares = 100
#usershare owner only = Yes
#usershare path = /var/lib/samba/usershares


#[homes]
#comment = Home Directories
#browseable = no
#valid users = %S
#writeable = yes
#create mode = 0600
#directory mode = 0700


#[public]
#path = /media/storage/ 
#public = yes
#writable = yes
#comment = smb share
#printable = no
#guest ok = no

[SECURED]
path = /samba/shares
valid users = @sambashare
browsable = yes
writable = yes
read only = no

提前致谢,由于我对 Linux 还很陌生,因此非常感谢。

答案1

好的,谢谢,我找到了答案:D 我混淆了路径和 samba 共享名... 我尝试通过 smb://userdomain.xy/samba/shares 进行访问。当我通过 smb://userdomain.xy/secured 尝试时,它成功了:D 无论如何,感谢您的回答。

相关内容