LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-28-2008, 06:51 AM   #1
eoinjones
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora
Posts: 8

Rep: Reputation: 0
SAMBA/smbd cannot find interfaces problem


Hi,

I am fairly new to Samba but I have read most of the documentation. I am trying to set up a small home network between a laptop running Fedora 9 (i386)and a dual boot desktop running Fedora 9 (i386) and Windows XP Pro Sp2.

If I exclude the "interfaces" line in the smb.conf file it is possible to see the shares on the Windows XP from the Fedora laptop. I cannot however access shares when both computers are running Fedora.

I looked in the smbd and nmbd logs and it gave a message that "no local interfaces" were found and that permission was denied connecting to cups. I tried modifying the smb.conf to bind it to wlan0 but this didn't help. It says "no interfaces available to bind to" in the log. I then tried to specify the ip address and subnet mask in the interfaces line, but had similar results.


My smb.conf (with comments removed) reads:
[global]
workgroup = HOME
netbios name = DELL LAPTOP
server string = Inspiron
interfaces = 10.1.1.52/255.255.255.0
bind interfaces only = Yes
security = SHARE
passdb backend = tdbsam
cups options = raw

[homes]
comment = Home Directories

[inspiron]
comment = Inspiron Laptop
path = /home/tonymj/Public
read only = No


The smbd.log reads:
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/08/28 12:16:13, 0] printing/print_cups.c:cups_connect(68)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/08/28 12:16:13, 0] printing/print_cups.c:cups_connect(68)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/08/28 12:16:13, 0] lib/util_str.c:safe_strcpy_fn(709)
ERROR: string overflow by 1 (16 - 15) in safe_strcpy [10.1.1.50/255.255.255.0]
[2008/08/28 12:16:14, 0] lib/util_sock.cpen_socket_in(1267)
bind failed on port 445 socket_addr = 10.1.1.50.
Error = Cannot assign requested address
[2008/08/28 12:16:14, 0] lib/util_sock.cpen_socket_in(1267)
bind failed on port 139 socket_addr = 10.1.1.50.
Error = Cannot assign requested address
[2008/08/28 12:16:14, 0] smbd/server.cpen_sockets_smbd(547)
open_sockets_smbd: No sockets available to bind to.

The nmbd log reads:
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/08/28 12:16:12, 0] lib/util_str.c:safe_strcpy_fn(709)
ERROR: string overflow by 1 (16 - 15) in safe_strcpy [10.1.1.50/255.255.255.0]
[2008/08/28 12:16:12, 0] lib/util_sock.cpen_socket_in(1267)
bind failed on port 137 socket_addr = 10.1.1.50.
Error = Cannot assign requested address
[2008/08/28 12:16:12, 0] nmbd/nmbd_subnetdb.c:make_subnet(99)
nmbd_subnetdb:make_subnet()
Failed to open nmb socket on interface 10.1.1.52 for port 137. Error was Cannot assign requested address
[2008/08/28 12:16:12, 0] nmbd/nmbd.c:main(951)
ERROR: Failed when creating subnet lists. Exiting.

So basically, if I do not include an interfaces line I can see the shares but they refuse to mount and if I do include one it refuses to bind the ip address and both smbd and nmbd close down.
Hope somebody can help,
Thanks in advance for any assistance.
Eoin.
 
Old 08-28-2008, 10:06 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
1.
netbios name = DELL LAPTOP <---------- ugly name for Netbios with spaces between better if only LAPTOP
server string = Inspiron
interfaces = 10.1.1.52/255.255.255.0 <---- comment out
bind interfaces only = Yes <--- comment out as well

2. if wlan0 is the interface, then you should be sure that it's up
but better leave this both lines out for your scenario.
 
Old 08-28-2008, 03:32 PM   #3
eoinjones
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Odcheck,

If I take out these lines I can see Microsoft xp shares from the laptop but I cannot access the linux shares from any os.

My smbd log now looks like this:
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/08/28 21:18:00, 0] printing/print_cups.c:cups_connect(68)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/08/28 21:18:00, 0] printing/print_cups.c:cups_connect(68)
Unable to connect to CUPS server localhost:631 - Connection refused

And the nmbd looks like this:
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/08/28 21:17:59, 0] nmbd/nmbd_subnetdb.c:create_subnets(205)
create_subnets: No local interfaces !
[2008/08/28 21:17:59, 0] nmbd/nmbd_subnetdb.c:create_subnets(206)
create_subnets: Waiting for an interface to appear ...
[2008/08/28 21:24:20, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(395)
*****

Samba name server DELL LAPTOP is now a local master browser for workgroup HOME on subnet 10.1.1.51

*****

Cups error log looks like this:
I [28/Aug/2008:19:23:28 +0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [28/Aug/2008:19:23:28 +0100] Listening to 127.0.0.1:631 on fd 4...
I [28/Aug/2008:19:23:28 +0100] Listening to /var/run/cups/cups.sock on fd 5...
I [28/Aug/2008:19:23:28 +0100] Resuming new connection processing...
I [28/Aug/2008:19:29:04 +0100] Scheduler shutting down normally.
I [28/Aug/2008:19:29:04 +0100] Saving job cache file "/var/cache/cups/job.cache"...
I [28/Aug/2008:21:18:01 +0100] Listening to 127.0.0.1:631 (IPv4)
I [28/Aug/2008:21:18:01 +0100] Listening to /var/run/cups/cups.sock (Domain)
I [28/Aug/2008:21:18:01 +0100] Loaded configuration file "/etc/cups/cupsd.conf"
I [28/Aug/2008:21:18:01 +0100] Using default TempDir of /var/spool/cups/tmp...
I [28/Aug/2008:21:18:01 +0100] Configured for up to 100 clients.
I [28/Aug/2008:21:18:01 +0100] Allowing up to 100 client connections per host.
I [28/Aug/2008:21:18:01 +0100] Using policy "default" as the default!
I [28/Aug/2008:21:18:01 +0100] Full reload is required.
I [28/Aug/2008:21:18:01 +0100] Loaded MIME database from '/etc/cups': 35 types, 38 filters...
I [28/Aug/2008:21:18:01 +0100] Loading job cache file "/var/cache/cups/job.cache"...
I [28/Aug/2008:21:18:01 +0100] Full reload complete.

I'm very puzzled about how to solve this, I have scoured the net looking for a solution to no avail so any suggestions would be greatly appreciated.

Eoin.
 
Old 08-28-2008, 07:40 PM   #4
eoinjones
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
Figured it out (finally), the reason I couldn't mount the linux shares was a permission issue with CIFS. When I changed the permissions with chmod +s /sbin/mount.cifs it worked.
 
  


Reply

Tags
bind, interfaces, ip, samba



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba starts with two smbd processes raypen Linux - Networking 3 06-06-2006 10:49 AM
Fedora 2 -- Samba -- Where is smbd? hell_carnage Linux - Networking 3 08-24-2004 11:19 PM
SAMBA - Can't find smbd Irving Linux - Software 3 06-25-2004 03:32 PM
SAMBA - smbd and nmbd does not run snarzary Linux - Newbie 0 11-01-2001 11:51 PM
Samba - getting smbd started jchim32 Linux - Networking 4 05-29-2001 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration