Samba 停止工作...错误的界面?

Samba 停止工作...错误的界面?

几天后,我的 samba 安装停止工作:进程正在运行,testparm 正常,但似乎无法正确连接到本地接口(?)。我在论坛上搜索了几个小时,但没有找到与接口相关的解决方案。这是 smbtree -d3 返回的内容:

Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
Enter pbserver's password: 
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7fcd16f14e60] mpx_fde[(nil)] fd[7] - disabling
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1b>
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7fcd16f14e60] mpx_fde[(nil)] fd[7] - disabling
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7fcd16f14df0] mpx_fde[(nil)] fd[7] - disabling

我的配置是全局的:

[global]
workgroup = WORKGROUP
netbios name = BorzServer
guest ok = yes
read only = no
security = user
wins support = yes
guest account = nobody
os level = 66
hosts allow = localhost, 192.168.
bind interfaces only = yes
preferred master = Yes
domain master = Yes
local master = yes
unix extensions = no
name resolve order =  bcast
interfaces = 127.0.0.1

如果我删除“接口”,smbtree 将返回我其他计算机的共享(对于任何用户)。原始安装值为 127.0.0.0/8 eth0,但这会返回更多错误(找不到 eth0 的地址)

答案1

127.0.0.1尝试只在全局配置中添加接口名称

interfaces = 127.0.0.0/8 eth0

相关内容