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.c:open_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.c:open_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.c:open_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.c:open_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. |
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. |
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. |
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.
|
All times are GMT -5. The time now is 01:58 PM. |