You are not logged in.

#1 2010-04-22 19:32:03

RufusD
Member
Registered: 2010-03-21
Posts: 86

can't setup samba

Hi there!
I'm struggling with setting up a samba server. I used to have one of these running in sid, but in arch something bad is going on. What I did is follow the wiki:
1. install samba, install gamin, run samba
2. copy smb.conf.default to smb.conf
3. set security to share
4. setup share as per samba's howto:

[Plans]
path = /plans
read only = Yes
guest ok = Yes

/plans was created and chmodded 755.
5. restart samba various times.

What happens next is in dolphin:
6. click "Network", "Samba Shares", "Mygroup", "Godot (Samba Server)", "Plans"
7. dolphin complains "Process for protocol smb://godot ended unexpectedly"

Does anybody have an idea what's going on? As per abovementioned howto I tried

[root@Godot samba]# smbclient -L localhost -U%
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.2]

        Sharename       Type      Comment
        ---------       ----      -------
        Plans           Disk      
        IPC$            IPC       IPC Service (Samba Server)
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.2]

        Server               Comment
        ---------            -------
        GODOT                Samba Server

        Workgroup            Master
        ---------            -------
        MYGROUP

and

smbclient -L server -Uroot%password
Connection to server failed (Error NT_STATUS_UNSUCCESSFUL)

This last error takes some 15 seconds to appear. I tried replacing "password" by the actual password, which didn't change anything. Nothing at all shows up in /var/log/auth.log or /var/log/samba/
I'm grateful for any suggestions. If you need further information, just tell me.
Best wishes,
Rufus

Offline

#2 2010-04-23 09:07:08

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: can't setup samba

A few things to check:

1) Have you set-up the allow setting for the IP address range in smb.conf?
2) What happens if you specify the server by IP address in smbclient?

eg

smbclient -L 192.168.1.2 -U user%password

"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#3 2010-04-25 08:52:44

RufusD
Member
Registered: 2010-03-21
Posts: 86

Re: can't setup samba

Arghl! Forget about the second code snippet. I had literally used "server", which my server is of course not called. Anyhow, what I now get is

[root@Godot plans]# LANG=EN smbclient -L godot -Uroot%password
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.2]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
Speicherzugriffsfehler

(The latter meaning "memory access error", which I think usually is translated as segfault). After adding

client lanman auth = Yes

to my smb.conf, now I'm at

[root@Godot plans]# smbclient -L godot -Uroot%password
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.2]

        Sharename       Type      Comment
        ---------       ----      -------
        Plans           Disk      
        IPC$            IPC       IPC Service (Samba Server)
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.2]

        Server               Comment
        ---------            -------
        GODOT                Samba Server

        Workgroup            Master
        ---------            -------
        MYGROUP              GODOT

Anyway, dolphin still bails out as described above (I'm using dolphin on the server itself). Uncommenting

;   hosts allow = 192.168.178. 192.168.2. 127.

didn't change anything, either. I don't think it's a permission issue, since the server readily tells me which shares exist. What's this lanman thing?

I *suspect* it's something like my former errors were: samba expects to find some other packages to work reasonably (like my trouble with X not working without hal, which it however not depended on). So is there anything I should install besides samba? gamin is installed

Last edited by RufusD (2010-04-25 08:57:29)

Offline

#4 2010-04-25 11:26:09

RufusD
Member
Registered: 2010-03-21
Posts: 86

Re: can't setup samba

Alright, this is interesting:

the problem is not arch's samba, but arch's smbclient. Actually my server works fine when accessed by some other machine. Only accessing it from the server itself fails. That's not nice, but for the time being I can live with this status.

Offline

#5 2010-04-25 12:32:42

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: can't setup samba

I was going to post this link earlier but just wasn't sure...

http://bbs.archlinux.org/viewtopic.php?id=94874

Offline

Board footer

Powered by FluxBB