You are not logged in.

#1 2009-09-26 14:09:57

stefek
Member
Registered: 2009-04-14
Posts: 33

Problem with Samba

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

#2 2009-09-26 16:00:55

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: Problem with Samba

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

#3 2009-09-26 17:00:28

stefek
Member
Registered: 2009-04-14
Posts: 33

Re: Problem with Samba

/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

#4 2009-09-26 17:49:32

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: Problem with Samba

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

#5 2009-09-26 17:55:10

stefek
Member
Registered: 2009-04-14
Posts: 33

Re: Problem with Samba

So I have to be connected to network before I run samba?

Offline

#6 2009-09-26 19:50:13

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: Problem with Samba

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

#7 2009-09-27 06:41:23

stefek
Member
Registered: 2009-04-14
Posts: 33

Re: Problem with Samba

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

#8 2009-09-27 11:58:58

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: Problem with Samba

Good to hear that it works.


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#9 2009-09-27 12:20:23

stefek
Member
Registered: 2009-04-14
Posts: 33

Re: Problem with Samba

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

#10 2009-09-27 13:18:22

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Problem with Samba

If your using nautilus try to mount the share using File-->connect to server option. To mount the share manually use mount.cifs

Offline

Board footer

Powered by FluxBB