smbclient woes

Hi

I’m new to all this so please be gentle :slight_smile:

I have just installed opensuse11.0 and would like to access my shared drives on my windows boxes, ( i Have two one vista and one xp)

I have tried following the instructions from here
SDB:Access to Windows Shares - openSUSE

but I suspect that I’m missing something because the first test fails with a
smbclient -L wks1
Connection to wks1 failed (Error NT_STATUS_BAD_NETWORK_NAME)

and the second test

smbclient -L wks1 U testuser
Connection to wks1 failed (Error NT_STATUS_BAD_NETWORK_NAME)
also fails

what else do I need to do to set this up? do I need to modify some config files?

tia

What do you get from: smbtree -N

You should check that you have samba.conf configured with the correct workgroup name (the same as the Windoze machine you’re trying to browse).

On Wed November 12 2008 08:26 am, navatala wrote:

>
> Hi
>
> I’m new to all this so please be gentle :slight_smile:
>
> I have just installed opensuse11.0 and would like to access my shared
> drives on my windows boxes, ( i Have two one vista and one xp)
>
> I have tried following the instructions from here
> ‘SDB:Access to Windows Shares - openSUSE’
> (http://en.opensuse.org/SDB:Access_to_Windows_Shares)
>
> but I suspect that I’m missing something because the first test fails
> with a
> smbclient -L wks1
> Connection to wks1 failed (Error NT_STATUS_BAD_NETWORK_NAME)
>
> and the second test
>
> smbclient -L wks1 U testuser
> Connection to wks1 failed (Error NT_STATUS_BAD_NETWORK_NAME)
> also fails
>
> what else do I need to do to set this up? do I need to modify some
> config files?
>
> tia
>
>
Have you set the workgroup on Suse to be the same as on the Windows Machines?
Take a look at the HowTo’s here:
http://www.swerdna.net.au/linux.html


P. V.
Cogito cogito ergo cogito sum.

I thought the link I was following looked to easy :shame: let me see what Linux HOWTOs and Tutorials: Suse Linux 10.0, 10.1 openSUSE 10.2, 10.3, 11.0 has to say.

tia

By the way, to use the command line, the syntax is a little different. This should work:

smbclient -L vista_servername -U vista_username

This is something I haven’t tried, please see my post under Re: SMB Problem in OpenSuse 11 with KDE 3 or 4 for more background

In brief I cannot seem to see any Windows machine (winnie, platinum, etc.) from the Linux machine (dewey).

However this command gives:

linux-rgph:/home/dewey # smbtree -N
MAGICKINGDOM
\WINNIE
\WINNIE\Printer Microsoft XPS Document Writer
\WINNIE\C$ Default share
\WINNIE\ADMIN$ Remote Admin
\WINNIE\Downloads
\WINNIE!Movies
\WINNIE\New Files
\WINNIE\Winnie Local
\WINNIE\print$ Printer Drivers
\WINNIE\D$ Default share
\WINNIE\IPC$ Remote IPC
\WINNIE\FAX Canon MP780 FAX
\WINNIE\MP780 Canon MP780 Series Printer
\WINNIE\E$ Default share
\PLATINUM
\PLATINUM\Printer Microsoft XPS Document Writer
\PLATINUM\C$ Default share
\PLATINUM\ADMIN$ Remote Admin
\PLATINUM\F$ Default share
\PLATINUM!Basic Setup
\PLATINUM\32 Bit WinXP
\PLATINUM\Anti-idle Camping Adventure
\PLATINUM\Backups
\PLATINUM\Spare
\PLATINUM\CampBot
\PLATINUM\print$ Printer Drivers
\PLATINUM\SharedDocs
\PLATINUM\D$ Default share
\PLATINUM\IPC$ Remote IPC
\PLATINUM\Local Disk
\PLATINUM\E$ Default share
\LESISMORE-PC
\LESISMORE-PC\Public
\LESISMORE-PC\LesIsMore
\LESISMORE-PC\IPC$ Remote IPC
\LESISMORE-PC\D$ Default share
\LESISMORE-PC\C$ Default share
\LESISMORE-PC\ADMIN$ Remote Admin
\DRAGON
\DRAGON\C$ Default share
\DRAGON\ADMIN$ Remote Admin
\DRAGON\Mickey
\DRAGON\Program Files
\DRAGON\print$ Printer Drivers
\DRAGON\SharedDocs
\DRAGON\IPC$ Remote IPC
\DRAGON\FAX Canon MP780 FAX
\DRAGON\MP780 Canon MP780 Series Printer
\DEWEY Samba 3.2.3-0.1-1882-SUSE-SL11.0
\DEWEY\IPC$ IPC Service (Samba 3.2.3-0.1-1882-SUSE-SL11.0)
\DEWEY\dewey

This all looks correct to me - sigh.

@pearl298: you’re mixed in at the end of two longish threads. I recommend that you start your own thread and set out your background information, describe the LAN and it’s machines, the operating systems, the Suse version and which desktoop you are using, together with the smbtree results and what happens that you consider to be a problem. It deserves a focused discussion all to itself. As it is I think ppl are distracted to the main problem of the threads you have entered.

On Wed November 12 2008 10:56 pm, pearl298 wrote:

>
> swerdna;1895184 Wrote:
>> What do you get from: smbtree -N
>
> This is something I haven’t tried, please see my post under Re: SMB
> Problem in OpenSuse 11 with KDE 3 or 4 for more background
>
> In brief I cannot seem to see any Windows machine (winnie, platinum,
> etc.) from the Linux machine (dewey).
>
> However this command gives:
>
> linux-rgph:/home/dewey # smbtree -N
> MAGICKINGDOM
<snip>
>
>
> This all looks correct to me - sigh.
>
>
pearl298;
What version of KDE are you using? KDE4.0 has a known problem. If you are
using 4.0, either upgrade to 4.1 or try 3.5. It has been reported that 4.1
is OK and 3.5 is known to be OK. If you are not using KDE 4.0 post back.

P. V.
Cogito cogito ergo cogito sum.

Hey Fella,

first of all discover the share name of your windows share folder (right click and … you know). I also suppose you have the password for your local Administrator on windows machines. Now follow:

smbclient \\<win_machine_ip>\<share_name> -U administrator

then you are asked for the password and you are on.
if you are going to connect with other users than admin, don’t forget to check the permissions on your windows share.

Regards.

Hi

thanks to everyone I’m on the right track.
There where two things that I had not done

  1. start nmb
  2. start smb

pretty basic but then that’s me all over.

Ah I also had not activated the windows side :frowning:
file and print sharing for Microsoft networks and client for Microsoft networks.
I’m a great believer of minimizing protocols to the bear minimum.

I believe the documentation needs to be updated to cover these basic elements and help raw newbees like myself.

By the way the documentation states to install the samba server software, as I don’t want to access the linux box from a windows box I did no see that this was necessary. am I missing something else here or am I right in not installing it.

thanks

You should set those to always start at boot time: Yast runlevels –> expert –> nmb and smb set to runlevels 3 & 5

By the way the documentation states to install the samba server software, as I don’t want to access the linux box from a windows box I did no see that this was necessary. am I missing something else here or am I right in not installing it.

thanks
You need samba-client & libsmbclient for a Samba client role. For browsing using a Network Browser like Nautilus, Konqueror, Dolphin, you probably need to install the rpm Samba (and if KDE3 also the RPM kdebase3-samba). You need to set Samba config for correct name resolution, netbios name and workgroup. If you don’t want Samba Server, that is accomplished by not having any shared resources. It’s defining shared resources that really makes a “server”.

Upgrading to 4.1.3 did the trick!

Thank you!

I hadn’t realized that KDE 3.5 was still the current stable version. My bad.

Now on to porting Windows stuff over!

On Thu November 13 2008 04:16 pm, pearl298 wrote:

>
> PV;1895326 Wrote:
>> On Wed November 12 2008 10:56 pm, pearl298 wrote:
<snip>
>
> Thank you!
>
> I hadn’t realized that KDE 3.5 was still the current stable version. My
> bad.
>
> Now on to porting Windows stuff over!
>
>
pearl;

Glad you have it working and that we could help. In the future it would be
best to start new threads for your questions. A problem that you’re having
may not be the same as the problem of the OP and require a different
solution. It makes it easier for everyone if the advice and questions deal
with a single issue.

P. V.
Cogito cogito ergo cogito sum.

I understand and apologize

FWIW I ended up going back to KDE 3.5.9 due to other issues,but now at least Samba is working fine :slight_smile: