Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 1998 02:57:25 +0600 (NS)
From:      Max Khon <fjoe@iclub.nsu.ru>
To:        samba@samba.anu.edu.au
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   nmbd cleans up incorrectly?
Message-ID:  <Pine.BSF.3.96.980328024921.7481A-100000@iclub.nsu.ru>

next in thread | raw e-mail | index | archive | help
Hi, there!

i have FreeBSD 2.2.6-STABLE and samba 1.9.18p3 installed
sometimes nmbd could not be restarted (after killall nmbd; nmbd) with the
following message in nmbd logs:

=== /var/log/nmb.log ===
03/28/1998 02:37:50 netbios nameserver version 1.9.18p3 started
Copyright Andrew Tridgell 1994-1997
bind failed on port 137 socket_addr=0.0.0.0 (Address already in use)
=== cut here ===

=== netstat -aA ===
Active Internet connections (including servers)
PCB      Proto Recv-Q Send-Q  Local Address      Foreign Address    (state)
f0f89e00 tcp        0      0  iclub.smtp         mx.1025            ESTABLISHED
f10cef00 tcp        0      0  *.netbios-ssn      *.*                LISTEN
f0e7e900 tcp        0      0  *.auth             *.*                LISTEN
f0e4ee00 tcp        0      0  *.imap             *.*                LISTEN
f0f43900 tcp        0      0  *.pop3             *.*                LISTEN
f0f69d00 tcp        0      0  *.pop2             *.*                LISTEN
f0f37600 tcp        0      0  *.finger           *.*                LISTEN
f10dc100 tcp        0      0  *.login            *.*                LISTEN
f1019d00 tcp        0      0  *.cmd              *.*                LISTEN
f0fb2d00 tcp        0      0  *.telnet           *.*                LISTEN
f0ee2e00 tcp        0      0  *.ftp              *.*                LISTEN
f0d3fd00 tcp        0      0  iclub.1811         ftp.gamma.ru.20    ESTABLISHED
f0db2600 tcp        0      0  *.1811             *.*                LISTEN
f10be700 tcp        0      0  iclub.1809         ftp.gamma.ru.20    ESTABLISHED
f0d68100 tcp        0      0  *.1809             *.*                LISTEN
f10c9f00 tcp        0      0  iclub.1700         iclub.1708         ESTABLISHED
f101e500 tcp        0      0  iclub.1708         iclub.1700         ESTABLISHED
f10d6400 tcp        0      0  iclub.1704         ftp.gamma.ru.ftp   ESTABLISHED
f10d3d00 tcp        0      0  iclub.telnet       husky.iclub.49336  ESTABLISHED
f0f80900 tcp        0      0  iclub.1686         ftp.gamma.ru.20    ESTABLISHED
f0fc0400 tcp        0      0  *.1686             *.*                LISTEN
f0dc6100 tcp        0      0  iclub.telnet       husky.iclub.49333  ESTABLISHED
f10a0000 tcp        0      0  iclub.telnet       husky.iclub.49332  ESTABLISHED
f0d7a300 tcp        0      0  iclub.netbios-ssn  husky.iclub.49328  ESTABLISHED
f1049900 tcp        0      0  iclub.ftp-data     husky.iclub.49327  ESTABLISHED
f10b9f00 tcp        0      0  iclub.ftp          husky.iclub.49325  ESTABLISHED
f0fce700 tcp        0      0  iclub.telnet       husky.iclub.49208  ESTABLISHED
f0e54b00 tcp        0      0  iclub.1391         ftp.gamma.ru.ftp   ESTABLISHED
f0d67a00 tcp        0      0  iclub.telnet       husky.iclub.49154  ESTABLISHED
f0ff3700 tcp        0      0  iclub.telnet       husky.iclub.49153  ESTABLISHED
f0e54a00 tcp        0      0  iclub.telnet       husky.iclub.49152  ESTABLISHED
f0ece000 tcp        0      0  iclub.1319         ftp.gamma.ru.ftp   ESTABLISHED
f0d93300 tcp        0      0  *.6666             *.*                LISTEN
f0dc1400 tcp        0      0  *.24554            *.*                LISTEN
f0de5b00 tcp        0      0  *.5432             *.*                LISTEN
f0de2100 tcp        0      0  *.ssh              *.*                LISTEN
f0dc6400 tcp        0      0  *.http             *.*                LISTEN
f0da6600 tcp        0      0  *.smtp             *.*                LISTEN
f0da4500 tcp        0      0  *.printer          *.*                LISTEN
f0d5d100 tcp        0      0  *.1020             *.*                LISTEN
f0d5d500 tcp        0      0  *.shilp            *.*                LISTEN
f0d58000 tcp        0      0  *.1021             *.*                LISTEN
f0d52200 tcp        0      0  *.1022             *.*                LISTEN
f0d52f00 tcp        0      0  *.1023             *.*                LISTEN
f0d4c400 tcp        0      0  *.sunrpc           *.*                LISTEN
f0d49f00 tcp        0      0  *.domain           *.*                LISTEN
f0d39180 udp        0      0  *.ntalk            *.*               
f0e74100 udp        0      0  *.biff             *.*               
f102b080 udp        0      0  iclub.4799         *.*               
f102cf80 udp        0      0  iclub.4785         *.*               
f0f4a680 udp        0      0  localhost.4274     *.*               
f0de1e00 udp        0      0  *.27500            *.*               
f0dd9a00 udp        0      0  *.990              *.*               
f0dd5080 udp        0      0  *.bootps           *.*               
f0d9fc80 udp    41595      0  *.netbios-ns       *.*               
f0d5e080 udp        0      0  *.996              *.*               
f0d5ec80 udp        0      0  *.nfsd             *.*               
f0d4b800 udp        0      0  *.1008             *.*               
f0d51b00 udp        0      0  *.1012             *.*               
f0d4df00 udp        0      0  *.1021             *.*               
f0d4d000 udp        0      0  193.124.222..ntp   *.*               
f0d4d400 udp        0      0  *.*                *.*               
f0d4d700 udp        0      0  localhost.ntp      *.*               
f0d4d780 udp        0      0  iclub.ntp          *.*               
f0d4d800 udp        0      0  *.ntp              *.*               
f0d4dd80 udp        0      0  *.sunrpc           *.*               
f0d48700 udp        0      0  *.domain           *.*               
f0d48780 udp        0      0  localhost.domain   *.*               
f0d48800 udp        0      0  iclub.domain       *.*               
f0d45980 udp        0      0  *.syslog           *.*               
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
f0db4b00 dgram       0      0        0 f0925a94        0 f0947a94
f0de5e00 dgram       0      0        0 f0925a94        0 f0927194
f0de5f00 dgram       0      0        0 f0925a94        0 f0927a94
f0dd3a00 dgram       0      0        0 f0925a94        0 f0925194
f0da6c00 dgram       0      0        0 f0925a94        0 f0925694
f0da4800 stream      0      0 f0da1280        0        0        0 /var/run/printer
f0da0700 dgram       0      0        0 f0925a94        0 f0925714
f0da0b00 dgram       0      0        0 f0925a94        0 f0925d14
f1034f00 dgram       0      0        0 f0925a94        0 f0927814
f0d5d300 dgram       0      0        0 f0925a94        0 f0925e14
f0d52000 stream      0      0 f0d54380        0        0        0 /var/run/ypsock
f0d4ca00 dgram       0      0        0 f0925a94        0 f0925b14
f0d47300 dgram       0      0        0 f0925a94        0        0
f0d44800 dgram       0      0 f0d45a00        0 f096e414        0 /var/run/log
=== cut here ===

=== smb.conf ===
[global]
#	debug level = 6
	password level = 4

#	protocol = LANMAN1
	allow hosts = 193.124.222.64/255.255.255.224, 193.124.209.64/255.255.255.192, 193.124.210.0/255.255.255.192, 193.124.215.0/255.255.255.0, 193.124.222.160/255.255.255.224, 194.226.170.0/255.255.255.0
#	workgroup = ICLUB
#	remote announce = 193.124.222.95/ICENTER
	workgroup = ICENTER
	wins support = yes
	domain master = yes
	preferred master = yes
	os level = 65

#	share modes = yes
#	alternate permissions = yes

   	server string = ICLUB Samba Server (%v) (FreeBSD)
#	guest account = guest

	username map = /usr/local/etc/smb.namemap

#       read size = 8192
#       max xmit = 8192
	socket options = TCP_NODELAY SO_REUSEADDR

	domain logons = yes
	logon script = logon.bat

	security = user
	null passwords = yes

	case sensitive = no
	preserve case = yes
	short preserve case = yes
	default case = lower
	client code page = 866
	character set = koi8-r
#	valid chars = 33 35 36 37 38 39 40 41 45 48 49 50 51 52 53 54 55 56 57 64 97:65 98:66 99:67 100:68 101:69 102:70 103:71 104:72 105:73 106:74 107:75 108:76 109:77 110:78 111:79 112:80 113:81 114:82 115:83 116:84 117:85 118:86 119:87 120:88 121:89 122:90 
94 95 96 123 125 126 127 160:128 161:129 162:130 163:131 164:132 165:133 166:134 167:135 168:136 169:137 170:138 171:139 172:140 173:141 174:142 175:143 224:144 225:145 226:146 227:147 228:148 229:149 230:150 231:151 232:152 233:153 234:154 235:155 236:15
6 237:157 238:158 239:159 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 241:240 243:242 245:244 247:246 248 2
49 250 251 252 253 254 255

#	create mask = 0775
	create mask = 0664
	directory mask = 0775

	admin users = root
	write list = root

#	lm announce = 60

	wide links = no
	getwd cache = yes
	read prediction = yes

[netlogon]
	path = /usr/local/samba/netlogon
	guest ok = yes

[prog]
	comment = Programming Stuff
	path = /usr/local/samba/prog

[svet]
	comment = Svet
	path = /usr/local/samba/svet
	writeable = yes

	valid users = @svet
	force group = svet
	force create mode = 664
	force directory mode = 775

[utils]
	comment = Misc utils
	path = /usr/local/samba/utils

[msoffice]
	comment = Microsoft Office
	path = /usr/local/samba/msoffice
	share modes = no
	locking = no
	fake oplocks = yes
	invalid users = guest

[homes]
	comment = Our users homes
	writable = yes
	browsable = yes
#	share modes = no
#	locking = no

[ftp]
	comment = FTP Archive
	path = /home/ftp
	write list = @operator
	force create mode = 664
	force directory mode = 775

[cdrom]
	comment = CD-ROM
	path = /mnt/cdrom
#	root preexec = /sbin/mount -t cd9660 /dev/cd0c /mnt/cdrom
#	root postexec = /sbin/umount /mnt/cdrom
	locking = no

[hp]
	comment = HP LaserJet 5L (PCL)
#	printer name = hp
	printer name = raw
	printer driver = HP LaserJet 5L (PCL)
	printable = yes
	valid users = @hp
	writable = no
	path = /var/spool/public

[webdata]
	comment = iclub web pages
	path = /usr/local/www
        writable = yes
	valid users = @webdata
	force group = webdata
        force create mode = 664 
	force directory mode = 775

[oradoc]
	comment = Oracle Doc
	path = /usr/local/samba/oradoc
	valid users = @oradoc

[fido]
	comment = 2:5000/79 
	path = /usr/local/fido
	writable = yes

	valid users = @fido
	force group = fido
        force create mode = 664 
	force directory mode = 775

	default case = lower
	preserve case = no
	short preserve case = no

[mud]
	comment = mud
	path = /usr/local/mud
	valid users = @mud
	writeable = yes
	force create mode = 664
	force directory mode = 775

[mp3]
	comment = mp3
	path = /usr/local/samba/mp3
	writeable = yes
	write list = @wheel
	force create mode = 664
	force directory mode = 775
=== cut here ===

the problem existed in previous versions of FreeBSD (starting from
2.2.2-RELEASE)

/fjoe


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980328024921.7481A-100000>