DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-02-06 20:09:11

MartijnD
Member
From: NL Winterswijk
Registered: 2011-02-06
Posts: 5

Can't access samba shares, using Ubuntu 10.10

Hallo,

Last week I bought  myself a new laptop, because I was a little tired of using windows I decided to install Linux. I'm not completely new to Linux in the past I had a webserver running on Red Hat.

But now I have 1 little problem to solve. So as my subject describes I can't access my samba shares. On my old laptop running Vista there are no problems at all.

My DNS-323 is running the last custom alt-f firmware with this smb.conf:

Code:

[global]
    workgroup = DIKS
    server string = DNS-323 NAS
    security = USER
    map to guest = Bad User
    username map = /etc/samba/smbusers
    syslog only = Yes
    max log size = 32
    enable core files = No
    socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
    hosts allow = 127., 192.168.50.0/255.255.255.0
    print command = lpr -P %p %s; rm %s

[homes]
    valid users = %S
    read only = No
    browseable = No

[Root]
    path = /mnt/md0
    read only = No
    guest ok = Yes

[Backup]
    comment = Backup Area
    path = /Backup
    guest ok = Yes
    available = No

[Public (Read Write)]
    comment = Public Area
    path = /Public
    read only = No
    create mask = 0666
    directory mask = 0777
    guest ok = Yes

[Users]
    comment = All users
    path = /home
    read only = No

[Printers]
    path = /var/spool/samba
    guest ok = Yes
    printable = Yes
    browseable = No

Hope you guys can help me.

Offline

 

#2 2011-02-07 10:48:30

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Can't access samba shares, using Ubuntu 10.10

Did you install a Samba client on your Ubuntu box? Can you ping your NAS? What happens if you try to mount a share manually?

Offline

 

#3 2011-02-07 13:30:11

MartijnD
Member
From: NL Winterswijk
Registered: 2011-02-06
Posts: 5

Re: Can't access samba shares, using Ubuntu 10.10

Mijzelf wrote:

Did you install a Samba client on your Ubuntu box? Can you ping your NAS? What happens if you try to mount a share manually?

I'm using SMB4k to browse the network > I can view the avalible servers listed in my workgroup. But when I'm clicking de DNS-323 I don't get a list of the available shares.

I can ping the nas and also access the administration page.

Can't try to manually mount the share right now because I'm at the airport now waiting for a plane to go for an business trip.

Martijn

Offline

 

#4 2011-02-07 13:52:10

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Can't access samba shares, using Ubuntu 10.10

I have no experience with SMB4k, but I suppose it doesn't actually mount shares, but use libsmbclient or something like that. You could try to browse the NAS using smbclient with --debuglevel=10. It might show a decent errormessage.

Offline

 

#5 2011-02-10 09:25:05

MartijnD
Member
From: NL Winterswijk
Registered: 2011-02-06
Posts: 5

Re: Can't access samba shares, using Ubuntu 10.10

Thanks for the answers so far. As soon I'm home I'll try things some things.

About SMB4k, as fas as I can see is a graphical interface who uses the smbclient command. And is has some options to mount shares. correct me if i'm wrong wink

Martijn

Offline

 

#6 2011-02-19 16:15:38

MartijnD
Member
From: NL Winterswijk
Registered: 2011-02-06
Posts: 5

Re: Can't access samba shares, using Ubuntu 10.10

Now I'm back home I figured some things out.

The first error was was something about "client lanman auth" after some searching I found this: http://ubuntuforums.org/archive/index.php/t-873385.html after adding the line to my config file I am able to manually mount the share.

But browsing with smbtree stile gave the following error:

Code:

cli_start_connection: failed to connect to XXX<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL

After some searching I found this bug report: https://bugs.launchpad.net/ubuntu/+sour … bug/356022 Answer #16 gave me the solution. The problem has something to do with the nameservers witch I changed to google's name servers (these can be found in /etc/resolv.conf)

Thanks for the push in the right direction wink
Greets Martijn

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB