oleo, you are so right! I do this and all runs stable with xp and vista home. (with disable FTP in Web-interface). Great Thanks! Only one error in Log:
Code:
Feb 9 18:11:38 smbd[197]: [2007/02/09 18:11:38, 0] smbd/nttrans.c:call_nt_transact_ioctl(2516)
Feb 9 18:11:38 smbd[197]: call_nt_transact_ioctl: Currently not implemented.
But I think, this is normal (read on web)
Perhaps for other readers, my smb.conf looks now:
Code:
[global]
workgroup = WORKGROUP
guest account = nobody
server string = USBDISC
interfaces = 192.168.1.0/24 127.0.0.1
bind interfaces only = yes
security = SHARE
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 50
encrypt passwords = no
dns proxy = no
log file = /opt/var/log/samba/log.%m
load printers = No
[smbshare]
path=/opt/share
writeable = yes
browseable =yes
force user = admin
My post-boot file:
Code:
#!/bin/sh
# test if USB disc has been attached
# if not - then insert needed modules
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
# wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
swapon /dev/discs/disc0/part2
/opt/etc/init.d/rc.unslung
A hint for vista user with this configuration: In Xp you can explore the WL-HDD direct via doubleclick on 'USBDISC' in Network. In Vista 'USBDISC' is shown, but you can't doubleclick. But go on 'Run' and enter \\USBDISC\smbshare.
´
In cause of that, Logfile:
Code:
Feb 9 18:42:03 smbd[149]: [2007/02/09 18:42:03, 0] lib/util_sock.c:set_socket_options(151)
Feb 9 18:42:03 smbd[149]: Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
Feb 9 18:42:03 smbd[149]: [2007/02/09 18:42:03, 0] lib/util_sock.c:set_socket_options(151)
Feb 9 18:42:03 smbd[149]: Failed to set socket option TCP_NODELAY (Error Operation not supported)
Feb 9 18:42:44 smbd[371]: [2007/02/09 18:42:44, 0] smbd/service.c:make_connection(214)
Feb 9 18:42:44 smbd[371]: hnpc1 (192.168.1.2) couldn't find service smbshare.
Feb 9 18:42:44 smbd[371]: [2007/02/09 18:42:44, 0] smbd/service.c:make_connection(214)
Feb 9 18:42:44 smbd[371]: hnpc1 (192.168.1.2) couldn't find service smbshare