You are not logged in.
Pages: 1
Hi. I've configured Samba to share folders, but i've got other problem. Samba starts as a daemon, but when I'm trying to access to my share from localhost i type in dolphin smb://stefek, but there is error :
Timeout on server stefek
So i try to restart samba, but there is an output:
:: Stopping Samba Server [DONE]
:: Starting Samba Server [FAIL]
The second run /etc/rc.d/samba restart and it works. Here is smb.conf:
[global]
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
workgroup = XXX
server string = stefek
netbios name = stefek
guest account = stefek
security = share
; hosts allow = ALL
interfaces = lo eth0 eth1
bind interfaces only = true
;read raw = yes
;write raw = yes
;getwd cache = yes
;write cache size = 65536
;domain logons = yes
;domain master = yes
;preferred master = yes
local master = yes
;usershare allow guests = yes
wins support = yes
[CD]
guest ok = yes
path = /home/stefek/Downloads
[SDA]
path = /home/stefek/sda/
guest ok = yes
Does anyone know what's going on?
I really appreciate any help
stefek
Offline
Have you checked the log? See if there is any error messages there when the daemon fails to start.
EDIT: Spelling
Last edited by madeye (2009-09-26 16:01:24)
MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage
Offline
/var/log/daemon.log:
Sep 26 18:33:32 stefek nmbd[6085]: [2009/09/26 18:33:32, 0] libsmb/nmblib.c:send_udp(839)
Sep 26 18:33:32 stefek nmbd[6085]: Packet send failed to 192.168.1.255(138) ERRNO=Invalid argument
Sep 26 18:33:32 stefek nmbd[6085]: [2009/09/26 18:33:32, 0] libsmb/nmblib.c:send_udp(839)
Sep 26 18:33:32 stefek nmbd[6085]: Packet send failed to 192.168.1.255(138) ERRNO=Invalid argument
Sep 26 18:33:32 stefek nmbd[6085]: [2009/09/26 18:33:32, 0] nmbd/nmbd.c:reload_interfaces(288)
Sep 26 18:33:32 stefek nmbd[6085]: reload_interfaces: No subnets to listen to. Waiting..
Sep 26 18:34:08 stefek nmbd[6085]: domain_master_node_status_fail:
Sep 26 18:34:08 stefek nmbd[6085]: Doing a node status request to the domain master browser
Sep 26 18:34:08 stefek nmbd[6085]: for workgroup XXX at IP 192.168.1.66 failed.
Sep 26 18:34:08 stefek nmbd[6085]: Cannot sync browser lists.
If it can help, I use networkmanager with kdemod.
Offline
I am not totally sure, but it might be that the samba server binds to the old IP address from last time you started the machine. And when networkmanager then gets a new IP address (after you login to KDE) samba is already bound to an address that no longer is active.
MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage
Offline
So I have to be connected to network before I run samba?
Offline
That's what I am guessing.
You can try it. Just remove samba from the daemons array in rc.conf and start it manually after everything is up and working.
MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage
Offline
I've carefully read article about Samba on wiki and there is written that I should have added netfs to daemons. I've added it and now... it works ;-)
There are entries in daemons.log about samba, so it probably works.
Offline
Yes , but it still doesn't work as I want. When I choose in dolphin network and then Samba Shares, i get error:
Unable to find any workgroups in your local network. This might be caused by an enabled firewall.
If i enter smb://xxx (xxx is my workgroup), i get:
Could not connect to host for smb://xxx
It only works when i type smb://stefek.
How to make it work?
Offline
If your using nautilus try to mount the share using File-->connect to server option. To mount the share manually use mount.cifs
Offline
Pages: 1