我在 Fedora 服务器版上使用 samba。但我不明白为什么任何窗户都看不到它。它可以连接(直接,使用IP地址)。它基本上可以工作,但我在 linux(使用 nautilus)和 Windows 资源管理器上都看不到它们。
基本:
- 操作系统:Fedora 服务器版 32
- 主机名: bienenstock.local
- 桑巴:4.12.5-0.fc32.x64_64
- 防火墙正在运行(允许使用 samba - 我可以直接连接)
- SELinux 正在执行(在共享上读/写工作正常)
$ systemctl status nmb smb
● nmb.service - Samba NMB Daemon
Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2020-07-13 11:31:32 CEST; 29min ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 2577 (nmbd)
Status: "nmbd: ready to serve connections..."
Tasks: 2 (limit: 4516)
Memory: 4.0M
CPU: 568ms
CGroup: /system.slice/nmb.service
├─2577 /usr/sbin/nmbd --foreground --no-process-group
└─2586 /usr/sbin/nmbd --foreground --no-process-group
Jul 13 11:47:04 bienenstock.local nmbd[2577]: [2020/07/13 11:47:04.016820, 0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
Jul 13 11:47:04 bienenstock.local nmbd[2577]: find_domain_master_name_query_fail:
Jul 13 11:47:04 bienenstock.local nmbd[2577]: Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Jul 13 11:47:04 bienenstock.local nmbd[2577]: Unable to sync browse lists in this workgroup.
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2020-07-13 11:31:33 CEST; 29min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 2587 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 5 (limit: 4516)
Memory: 9.2M
CPU: 409ms
CGroup: /system.slice/smb.service
├─2587 /usr/sbin/smbd --foreground --no-process-group
├─2598 /usr/sbin/smbd --foreground --no-process-group
├─2600 /usr/sbin/smbd --foreground --no-process-group
├─2602 /usr/sbin/smbd --foreground --no-process-group
└─2669 /usr/sbin/smbd --foreground --no-process-group
Jul 13 11:31:32 bienenstock.local systemd[1]: Starting Samba SMB Daemon...
Jul 13 11:31:33 bienenstock.local systemd[1]: Started Samba SMB Daemon.
Jul 13 11:31:33 bienenstock.local smbd[2587]: [2020/07/13 11:31:33.151454, 0] ../../lib/util/become_daemon.c:135(daemon_ready)
Jul 13 11:31:33 bienenstock.local smbd[2587]: daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
testparm -s
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain master = No
load printers = No
logging = systemd
logon drive = P:
logon home = \\%L\%U\.9xprofile
logon path = \\%L\profiles\.msprofile
map to guest = Bad User
name resolve order = bcast host
printcap name = /dev/null
server min protocol = SMB2
usershare owner only = No
wins support = Yes
idmap config * : backend = tdb
create mask = 0774
directory mask = 0774
hosts allow = localhost 192.168.25.
include = /etc/samba/dhcp.conf
invalid users = bin daemon ftp games lp mail man messagebus news ntp postfix root sshd statd usbmux uucp wwwrun avahi plex
printing = bsd
valid users = meh bine
[homenet]
comment = Homenet
path = /srv/homenet
write list = meh bine
## and some others, but for sake of length of this writing I reduced the length
如您所见,两个守护程序都已启动并正在运行(您我不明白为什么“域主名称查询”失败...... - 可能是相关的?)。
可悲的是,上网只发现与 samba、SELinux 等相关的问题。但这有效,唯一不能在 windows explorer 或 nautilus 上宣布它。我错过了什么?
先感谢您!