PDA

Bekijk de volledige versie : WL-HDD Samba issues



dicki
20-04-2008, 10:48
Hi all,

i am having some issues with oleg firmware 1.9.2.7-8 and samba on my network.

basically it doesn't work and according to the logs it appears to be failing because it can't open a socket. does anyone have any ideas?

thanks

dicki

here is my smb.conf
[global]
workgroup = Workgroup
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = yes
server string = wlhdd

[Music]
path=/opt/share/music
writeable = yes
browseable = yes

[Pictures]
path=/opt/share/pictures
writeable = yes
browseable = yes

and here is my S97Samba file
#!/bin/sh
/usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf

/usr/sbin/nmbd -D -l /opt/var/log/nmbd.log -s /opt/etc/samba/smb.conf

and here is an exerpt from smbd.log the same errors appear in the nmbd.log file.
[2008/03/31 18:16:58, 0] lib/util_sock.c:open_socket_in(826)
Get_Hostbyname: Unknown host (none)
[2008/03/31 18:18:41, 0] lib/util_sock.c:open_socket_in(826)
Get_Hostbyname: Unknown host (none)
[2008/04/19 09:32:24, 0] lib/util_sock.c:open_socket_in(826)
Get_Hostbyname: Unknown host (none)
[2008/04/19 10:06:07, 0] lib/util_sock.c:open_socket_in(826)
Get_Hostbyname: Unknown host (none)
[2008/04/19 10:15:09, 0] lib/util_sock.c:open_socket_in(826)
Get_Hostbyname: Unknown host (none)
[2008/04/19 10:25:37, 0] lib/util_sock.c:open_socket_in(826)
Get_Hostbyname: Unknown host (none)
[2008/04/20 09:33:14, 0] lib/util_sock.c:open_socket_in(826)
Get_Hostbyname: Unknown host (none)

dicki
25-04-2008, 16:35
any ideas?

gerardwr
28-04-2008, 08:12
Hi,

I just installed the same FW. I configured SAMBA using the webinterface (USB Application/SAMBA), and that worked for me. The disk is shared and available using Windows Network under wl-hdd/share. As this works, I didn't bother configuring Samba using the .conf file, so I can't help you there.

The "code" below shows my settings, that's all I did.


USB Application - Simple Samba File Sharing
Enable Samba Demo mode? Yes
Access Level: Read/Write
Workgroup name: MSHOME

The smb.conf this results in is in the "code" below.

[admin@wl-hdd etc]$ cat smb.conf
[global]
interfaces = br0
bind interfaces only = yes
workgroup = MSHOME
server string = WLHDD
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = no
preserve case = yes
short preserve case = yes

[share]
path = /tmp/harddisk
writable = yes
force user = admin
[admin@wl-hdd etc]$

My Windows version defaults to the workgroup MSHOME, other versions default to WORKGROUP.