Samba won't start (bummer!) I've RTFM, and the problem seems to be that SMB is not starting correctly. /var/log/samba/log.nmbd shows: [2003/01/18 23:05:32, 0] nmbd/nmbd.c:main(794) Netbios nameserver version 2.2.5-SuSE started. Copyright Andrew Tridgell and the Samba Team 1994-2002 [2003/01/18 23:05:32, 1] lib/debug.c:debug_message(258) INFO: Debug class all level = 2 (pid 957 from pid 957) [2003/01/18 23:05:32, 2] nmbd/nmbd.c:main(832) Becoming a daemon. [2003/01/18 23:05:32, 2] lib/interface.c:add_interface(81) added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 [2003/01/18 23:05:32, 2] lib/interface.c:add_interface(81) added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 [2003/01/18 23:05:32, 0] lib/util_sock.c:open_socket_in(804) bind failed on port 137 socket_addr = 192.168.0.1. Error = Cannot assign requested address [2003/01/18 23:05:32, 0] nmbd/nmbd_subnetdb.c:make_subnet(139) nmbd_subnetdb:make_subnet() Failed to open nmb socket on interface 192.168.0.1 for port 137. Error was Cannot assign requested address [2003/01/18 23:05:32, 0] nmbd/nmbd.c:main(872) ERROR: Failed when creating subnet lists. Exiting. smb.conf reads: # smb.conf is the main samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE # Date: 2002-11-19 [global] workgroup = lmstone.com server string = Bronxville Samba Server os level = 2 time server = yes unix extensions = yes encrypt passwords = yes log file = /var/log/samba/%m log level = 2 syslog = 0 add user script = /usr/sbin/useradd -g smbusers -c "remote smb user" -d /home/%u -m -s /bin/false %u unix password sync = yes printing = CUPS printcap name = CUPS socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY large readwrite = yes wins support = no local master = no interfaces = 127.0.0.1/8 192.168.0.1/24 bind interfaces only = yes client code page = 437 character set = ISO8859-1 veto files = /*.eml/*.nws/riched20.dll/*.{*}/ [homes] comment = Home Directories valid users = %S browseable = yes writeable = yes create mask = 0640 directory mask = 0750 hide dot files = yes [cdrom] comment = Bronxville DVD path = /media/dvd locking = no [printers] comment = All Printers path = /var/tmp guest ok = yes printable = yes create mask = 0600 browseable = yes public = yes [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 [A-Share] comment = Samba Share path = /home/rocks/A-Share browsable = yes guest ok = yes I'm running SuSE 8.1. My machine gets assigned an IP address via DHCP of 192.168.0.247 by a D-Link DSL modem/router. The D-Link box has several ports, and I'd like to connect a work laptop running W2K, and have the laptop print to the Epson C80 connected to the Linux box. I'd also like to share files between the two machines as well. Any ideas greatly appreciated! I feel like I'm missing something that's right under my nose! Best regards to all, Mark -- ___________________________________________________________________ A Message From... L. Mark Stone http://www.lmstone.com
On Sat, 2003-01-18 at 20:22, L. Mark Stone wrote:
Samba won't start (bummer!)
I've RTFM, and the problem seems to be that SMB is not starting correctly.
/var/log/samba/log.nmbd shows:
[2003/01/18 23:05:32, 0] nmbd/nmbd.c:main(794) Netbios nameserver version 2.2.5-SuSE started. Copyright Andrew Tridgell and the Samba Team 1994-2002 [2003/01/18 23:05:32, 1] lib/debug.c:debug_message(258) INFO: Debug class all level = 2 (pid 957 from pid 957) [2003/01/18 23:05:32, 2] nmbd/nmbd.c:main(832) Becoming a daemon. [2003/01/18 23:05:32, 2] lib/interface.c:add_interface(81) added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 [2003/01/18 23:05:32, 2] lib/interface.c:add_interface(81) added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 [2003/01/18 23:05:32, 0] lib/util_sock.c:open_socket_in(804) bind failed on port 137 socket_addr = 192.168.0.1. Error = Cannot assign requested address [2003/01/18 23:05:32, 0] nmbd/nmbd_subnetdb.c:make_subnet(139) nmbd_subnetdb:make_subnet() Failed to open nmb socket on interface 192.168.0.1 for port 137. Error was Cannot assign requested address [2003/01/18 23:05:32, 0] nmbd/nmbd.c:main(872) ERROR: Failed when creating subnet lists. Exiting.
smb.conf reads:
# smb.conf is the main samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE # Date: 2002-11-19 [global] workgroup = lmstone.com server string = Bronxville Samba Server os level = 2 time server = yes unix extensions = yes encrypt passwords = yes log file = /var/log/samba/%m log level = 2 syslog = 0 add user script = /usr/sbin/useradd -g smbusers -c "remote smb user" -d /home/%u -m -s /bin/false %u unix password sync = yes printing = CUPS printcap name = CUPS socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY large readwrite = yes wins support = no local master = no interfaces = 127.0.0.1/8 192.168.0.1/24 bind interfaces only = yes client code page = 437 character set = ISO8859-1 veto files = /*.eml/*.nws/riched20.dll/*.{*}/ [homes] comment = Home Directories valid users = %S browseable = yes writeable = yes create mask = 0640 directory mask = 0750 hide dot files = yes [cdrom] comment = Bronxville DVD path = /media/dvd locking = no [printers] comment = All Printers path = /var/tmp guest ok = yes printable = yes create mask = 0600 browseable = yes public = yes [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 [A-Share] comment = Samba Share path = /home/rocks/A-Share browsable = yes guest ok = yes
I'm running SuSE 8.1. My machine gets assigned an IP address via DHCP of 192.168.0.247 by a D-Link DSL modem/router. The D-Link box has several ports, and I'd like to connect a work laptop running W2K, and have the laptop print to the Epson C80 connected to the Linux box. I'd also like to share files between the two machines as well.
Any ideas greatly appreciated! I feel like I'm missing something that's right under my nose!
Best regards to all, Mark
-- ___________________________________________________________________ A Message From... L. Mark Stone http://www.lmstone.com
I have a SuSE 8.1 server running on a Win2K network and I found the easiest way to set it up was with Wibmin. (www.webmin.com) I don't see any obvious problems, althought I am not an expert. I used Webmin for the server and LinNeighborhood for the client setup. It was pretty easy. In fact, a colleague of mine switched to SuSE 8.1 from RedHat, and connected like I did with not problems. Art
On Sat, 2003-01-18 at 20:22, L. Mark Stone wrote:
Samba won't start (bummer!)
I've RTFM, and the problem seems to be that SMB is not starting correctly.
/var/log/samba/log.nmbd shows:
[2003/01/18 23:05:32, 0] nmbd/nmbd.c:main(794) Netbios nameserver version 2.2.5-SuSE started. Copyright Andrew Tridgell and the Samba Team 1994-2002 [2003/01/18 23:05:32, 1] lib/debug.c:debug_message(258) INFO: Debug class all level = 2 (pid 957 from pid 957) [2003/01/18 23:05:32, 2] nmbd/nmbd.c:main(832) Becoming a daemon. [2003/01/18 23:05:32, 2] lib/interface.c:add_interface(81) added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 [2003/01/18 23:05:32, 2] lib/interface.c:add_interface(81) added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 [2003/01/18 23:05:32, 0] lib/util_sock.c:open_socket_in(804) bind failed on port 137 socket_addr = 192.168.0.1. Error = Cannot assign requested address [2003/01/18 23:05:32, 0] nmbd/nmbd_subnetdb.c:make_subnet(139) nmbd_subnetdb:make_subnet() Failed to open nmb socket on interface 192.168.0.1 for port 137. Error was Cannot assign requested address [2003/01/18 23:05:32, 0] nmbd/nmbd.c:main(872) ERROR: Failed when creating subnet lists. Exiting.
smb.conf reads:
# smb.conf is the main samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE # Date: 2002-11-19 [global] workgroup = lmstone.com server string = Bronxville Samba Server os level = 2 time server = yes unix extensions = yes encrypt passwords = yes log file = /var/log/samba/%m log level = 2 syslog = 0 add user script = /usr/sbin/useradd -g smbusers -c "remote smb user" -d /home/%u -m -s /bin/false %u unix password sync = yes printing = CUPS printcap name = CUPS socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY large readwrite = yes wins support = no local master = no interfaces = 127.0.0.1/8 192.168.0.1/24 bind interfaces only = yes client code page = 437 character set = ISO8859-1 veto files = /*.eml/*.nws/riched20.dll/*.{*}/ [homes] comment = Home Directories valid users = %S browseable = yes writeable = yes create mask = 0640 directory mask = 0750 hide dot files = yes [cdrom] comment = Bronxville DVD path = /media/dvd locking = no [printers] comment = All Printers path = /var/tmp guest ok = yes printable = yes create mask = 0600 browseable = yes public = yes [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 [A-Share] comment = Samba Share path = /home/rocks/A-Share browsable = yes guest ok = yes
I'm running SuSE 8.1. My machine gets assigned an IP address via DHCP of 192.168.0.247 by a D-Link DSL modem/router. The D-Link box has several ports, and I'd like to connect a work laptop running W2K, and have the laptop print to the Epson C80 connected to the Linux box. I'd also like to share files between the two machines as well.
Any ideas greatly appreciated! I feel like I'm missing something that's right under my nose!
Best regards to all, Mark
-- ___________________________________________________________________ A Message From... L. Mark Stone http://www.lmstone.com
One thing I forgot to mention, go to www.riguy.com/smb2.html. This is a great tutorial on using webmin with samba. Art
On Saturday 18 January 2003 8:22 pm, L. Mark Stone wrote:
Samba won't start (bummer!)
I've RTFM, and the problem seems to be that SMB is not starting correctly.
/var/log/samba/log.nmbd shows:
[2003/01/18 23:05:32, 2] lib/interface.c:add_interface(81) added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 [2003/01/18 23:05:32, 0] lib/util_sock.c:open_socket_in(804) bind failed on port 137 socket_addr = 192.168.0.1. Error = Cannot assign requested address
I recently went through a series of e-mails with someone from this list with a very similar problem [check archives for the full details of the "debugging" we did, but his problem was he was editing the wrong smb.conf file, so he wasn't actually making any changes]
smb.conf reads:
[global] interfaces = 127.0.0.1/8 192.168.0.1/24 bind interfaces only = yes
This is the magic setting that makes things work, and it appears *almost* correct -- looking at your next comment
My machine gets ... 192.168.0.247
sure, the "subnet" part (192.168.0) is the same, but the ACTUAL machine number is different -- 247 != 1 the smb.conf line is telling samba/nmb to explicitly use IP address 192.168.0.1, which it cannot because that address does not exist on your computer. You'll need to do one of the following: 1) set your computer to a fixed address [and make everything match] 2) remove this line and let samba "figure out" which interface to use [could be considered "less secure", however] 3) modify your if-up script to re-write the smb.conf file with the actual IP address received from your DHCP controller. [eeeewwwwww....]
On Sun, 2003-01-19 at 21:59, Tom Emerson wrote:
the smb.conf line is telling samba/nmb to explicitly use IP address 192.168.0.1, which it cannot because that address does not exist on your computer. You'll need to do one of the following:
1) set your computer to a fixed address [and make everything match] 2) remove this line and let samba "figure out" which interface to use [could be considered "less secure", however] 3) modify your if-up script to re-write the smb.conf file with the actual IP address received from your DHCP controller. [eeeewwwwww....]
4) use
interfaces = lo eth0
I think that would work.
--
Anders Johansson
On Sunday 19 January 2003 1:06 pm, Anders Johansson wrote:
4) use
interfaces = lo eth0
In the immortal words of Homer Simpson, ">Doh!<" (I even suggested that to the guy who had the problem the first time, since it was copied from the "FineManaul" ;) )
Gentlemen, Thanks for all of your replies. Here's what I did to make Samba work... First, I changed the following two lines in samba.conf: interfaces = 127.0.0.2/8 192.168.0.247/24 bind interfaces only = no Next, I used YaST to stop and then restart nmbd and smbd. I can now browse shares locally. On Tuesday I'll hook up the laptop and check printing, but assume no news is good news! Thanks again! Mark -- ___________________________________________________________________ A Message From... L. Mark Stone http://www.lmstone.com
participants (4)
-
Anders Johansson
-
Art Fore
-
L. Mark Stone
-
Tom Emerson