DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th November 2022
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default [7.2] Samba: nmbd failed: WARNING: no network interfaces found

Hi.

On OpenBSD 7.2, here's the samba config:
Code:
# Global parameters
[global]
	add group script = /usr/sbin/groupadd %g
	add user script = /usr/sbin/useradd %u
	bind interfaces only = Yes
	deadtime = 15
	delete group script = /usr/sbin/groupdel %g
	delete user from group script = /usr/sbin/deluser %u %g
	delete user script = /usr/sbin/userdel %u
	dns proxy = No
	domain master = Yes
	interfaces = em0
	load printers = No
	log file = /var/log/samba/%m.log
	max log size = 50
	netbios name = SAMBA
	passwd program = /usr/bin/passwd %u
	reject md5 clients = Yes
	reject md5 servers = Yes
	restrict anonymous = 2
	security = USER
	server role = standalone server
	server string = %h
	unix password sync = Yes
	workgroup = W
	idmap config * : backend = tdb
	hosts allow = 192.168.xyz. 
	hosts deny = all
	invalid users = admin nobody root @wheel
	max connections = 10
	veto files = /*.com/*.dll/*.exe/

# Personals
(…)
em0 ifconfig:
Code:
$ ifconfig em0                                                                                                                                         
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	lladdr c8:60:00:bf:aa:e3
	index 1 priority 0 llprio 3
	groups: egress
	media: Ethernet autoselect (1000baseT full-duplex)
	status: active
	inet 192.168.xyz.3 netmask 0xffffff00 broadcast 192.168.xyz.255
I access on the web without any problem.
During start samba:
Code:
$ doas rcctl start samba                  
smbd(ok)
nmbd(ok)
After few seconds, nmbd failed!
Code:
$ doas rcctl check nmbd 
nmbd(failed)
But:
Code:
11/16/22 14:50:26 $ ps auxw | grep mbd  
root     48257  0.0  0.0  1400  2956 ??  S       1:56PM    0:01.95 /usr/local/sbin/nmbd -D
root     54876  0.0  0.0  1344  7480 ??  S       2:50PM    0:00.02 /usr/local/sbin/smbd -D
root     83817  0.0  0.0  1340  2952 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     87549  0.0  0.0  1340  2656 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     99939  0.0  0.0   900   804 p0  Sp      2:50PM    0:00.00 /bin/ksh /etc/rc.d/nmbd start
root     54952  0.0  0.1  1112 10140 p0  S       2:50PM    0:00.03 /usr/local/bin/smbcontrol nmbd ping
myuser      89133  0.0  0.0   512  1432 p0  S+p     2:50PM    0:00.00 grep mbd
11/16/22 14:50:28 $ ps auxw | grep mbd  
root     48257  0.0  0.0  1400  2956 ??  S       1:56PM    0:01.96 /usr/local/sbin/nmbd -D
root     54876  0.0  0.0  1344  7480 ??  S       2:50PM    0:00.02 /usr/local/sbin/smbd -D
root     83817  0.0  0.0  1340  2952 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     87549  0.0  0.0  1340  2656 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     99939  0.0  0.0   900   804 p0  Sp      2:50PM    0:00.00 /bin/ksh /etc/rc.d/nmbd start
root     54952  0.0  0.1  1112 10140 p0  S       2:50PM    0:00.03 /usr/local/bin/smbcontrol nmbd ping
myuser       2560  0.0  0.0   520  1444 p0  S+p     2:50PM    0:00.00 grep mbd
11/16/22 14:50:30 $ ps auxw | grep mbd  
root     48257  0.0  0.0  1400  2956 ??  S       1:56PM    0:01.96 /usr/local/sbin/nmbd -D
root     54876  0.0  0.0  1344  7480 ??  S       2:50PM    0:00.02 /usr/local/sbin/smbd -D
root     83817  0.0  0.0  1340  2952 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     87549  0.0  0.0  1340  2656 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     99939  0.0  0.0   900   804 p0  Sp      2:50PM    0:00.00 /bin/ksh /etc/rc.d/nmbd start
root     54952  0.0  0.1  1112 10140 p0  S       2:50PM    0:00.03 /usr/local/bin/smbcontrol nmbd ping
myuser      77776  0.0  0.0   512  1432 p0  S+p     2:50PM    0:00.00 grep mbd
11/16/22 14:50:31 $ ps auxw | grep mbd  
root     48257  0.0  0.0  1400  2956 ??  S       1:56PM    0:01.96 /usr/local/sbin/nmbd -D
root     54876  0.0  0.0  1344  7480 ??  S       2:50PM    0:00.02 /usr/local/sbin/smbd -D
root     83817  0.0  0.0  1340  2952 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     87549  0.0  0.0  1340  2656 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     99939  0.0  0.0   900   804 p0  Sp      2:50PM    0:00.00 /bin/ksh /etc/rc.d/nmbd start
root     54952  0.0  0.1  1112 10140 p0  S       2:50PM    0:00.03 /usr/local/bin/smbcontrol nmbd ping
myuser      83230  0.0  0.0   516  1436 p0  S+p     2:50PM    0:00.00 grep mbd
11/16/22 14:50:33 $ ps auxw | grep mbd  
root     48257  0.0  0.0  1400  2956 ??  S       1:56PM    0:01.96 /usr/local/sbin/nmbd -D
root     54876  0.0  0.0  1344  7480 ??  S       2:50PM    0:00.02 /usr/local/sbin/smbd -D
root     83817  0.0  0.0  1340  2952 ??  S       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     87549  0.0  0.0  1340  2656 ??  I       2:50PM    0:00.00 /usr/local/sbin/smbd -D
myuser      76379  0.0  0.0   524  1452 p0  S+p     2:50PM    0:00.00 grep mbd
11/16/22 14:50:35 $ ps auxw | grep mbd  
root     48257  0.0  0.0  1400  2956 ??  S       1:56PM    0:01.96 /usr/local/sbin/nmbd -D
root     54876  0.0  0.0  1344  7480 ??  I       2:50PM    0:00.02 /usr/local/sbin/smbd -D
root     83817  0.0  0.0  1340  2952 ??  I       2:50PM    0:00.00 /usr/local/sbin/smbd -D
root     87549  0.0  0.0  1340  2656 ??  I       2:50PM    0:00.00 /usr/local/sbin/smbd -D
myuser      57398  0.0  0.0   512  1428 p0  S+p     2:50PM    0:00.00 grep mbd
The smbd.nmbd inform:
Code:
$ tail /var/log/samba/smbd.nmbd                                                                                                                        
[2022/11/16 14:51:17.197278,  0] ../../source3/lib/interface.c:685(load_interfaces)
  WARNING: no network interfaces found
[2022/11/16 14:51:17.797166,  0] ../../source3/lib/interface.c:685(load_interfaces)
  WARNING: no network interfaces found
[2022/11/16 14:51:18.262090,  0] ../../source3/lib/interface.c:685(load_interfaces)
  WARNING: no network interfaces found
[2022/11/16 14:51:18.806619,  0] ../../source3/lib/interface.c:685(load_interfaces)
  WARNING: no network interfaces found
[2022/11/16 14:51:20.231205,  0] ../../source3/lib/interface.c:685(load_interfaces)
  WARNING: no network interfaces found
I attempted to start only nmbd; it start and failed one second later!

In fact, I cant use…

One idea?
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
  #2   (View Single Post)  
Old 20th November 2022
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

OK. I close this, because bad config!
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
Reply

Tags
openbsd, samba

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba : sh: /usr/bin/lex: not found gillaume NetBSD Package System (pkgsrc) 2 22nd November 2022 12:52 PM
two lan interfaces and one network peric0 OpenBSD General 1 29th March 2012 02:16 AM
San Francisco's "network kidnapper" found guilty J65nko News 0 28th April 2010 09:49 PM
+arplookup ###.###.##.### failed: host is not on local network starbuck FreeBSD General 3 20th May 2008 10:27 PM


All times are GMT. The time now is 08:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick