Samba not working PLZ HLP

Hello all, I’m new to your community.

After some initial problems with connectivity I have disabled K Network manager and am using IFUP on my wireless Dell laptop (D620). I am surfing the internet using WEP on my wlan quite happily.

Here’s my question: I have activated the Samba server and am trying to connect to my Windows machine and access its shared folder. My overall goal is to use this laptop as a jukebox which connects to my stereo system in the living room. I can’t get my samba to work at all. After searching extensively through these forums I found and disabled my firewall built into OpenSUSE and can see the workgroup from my dolphin file manager.

What am I missing?

Windows Vista on main file server.
Standard workgroup environment, no domain or anything complicated.

Thx in advance.
-V

On Sun December 21 2008 01:36 pm, Vhulheim wrote:

>
> Hello all, I’m new to your community.
>
> After some initial problems with connectivity I have disabled K Network
> manager and am using IFUP on my wireless Dell laptop (D620). I am
> surfing the internet using WEP on my wlan quite happily.
>
> Here’s my question: I have activated the Samba server and am trying to
> connect to my Windows machine and access its shared folder. My overall
> goal is to use this laptop as a jukebox which connects to my stereo
> system in the living room. I can’t get my samba to work at all. After
> searching extensively through these forums I found and disabled my
> firewall built into OpenSUSE and can see the workgroup from my dolphin
> file manager.
>
> What am I missing?
>
> Windows Vista on main file server.
> Standard workgroup environment, no domain or anything complicated.
>
> Thx in advance.
> -V
>
>
Vhulheim;

  1. Have you added users with “smbpasswd -a <username>”?
  2. See this Howto:
    http://www.swerdna.net.au/linux.html

    P. V.
    “We’re all in this together, I’m pulling for you.” Red Green

i tried running that command as you suggested and it says i failed to modify password entry for user <whatever>

On Sun December 21 2008 02:06 pm, Vhulheim wrote:

>
> i tried running that command as you suggested and it says i failed to
> modify password entry for user <whatever>
>
>
Vhulheim;
You need root authority to run smbpasswd for adding users.


su
smbpasswd -a <username>

<username> must be a valid linux user, the password you give can be different
than the linux password.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Alright.

I have created a username on my openSUSE laptop, we’ll call it bologna. I have also created an identical username on my Vista machine which has the music folder I want to share. Both passwords and usernames match exactly (case sensitive) on both machines, also the username and password using the smbpasswd -a bologna is set identically as well.

I know that my Vista box is working right, my neighbor downstairs shares my wifi and has access to my shared folders.

I have completely disabled my openSUSE firewall. This laptop will serve the sole purpose of being a living room jukebox so the firewall is the least of my concern.

From the CLI I type smbtree and it gives me the following:
WORKGROUP
----\VISTA_SERVER_NAME
Timeout connecting to <ip address>
Timeout connecting to <ip address>
cli_start_connection: failed to connect to <VISTA_SERVER_NAME> Error NT_STATUS_ACCESS_DENIED

Gentlemen, I’m at a complete loss. I know I’m close here, and I’m eager to use openSUSE. Is there any other information needed to render aid?

thx.

On Mon December 22 2008 05:16 am, Vhulheim wrote:

>
> Alright.
>
> I have created a username on my openSUSE laptop, we’ll call it bologna.
> I have also created an identical username on my Vista machine which has
> the music folder I want to share. Both passwords and usernames match
> exactly (case sensitive) on both machines, also the username and
> password using the smbpasswd -a bologna is set identically as well.
>
> I know that my Vista box is working right, my neighbor downstairs
> shares my wifi and has access to my shared folders.
>
> I have completely disabled my openSUSE firewall. This laptop will
> serve the sole purpose of being a living room jukebox so the firewall is
> the least of my concern.
>
> From the CLI I type smbtree and it gives me the following:
> WORKGROUP
> ----\VISTA_SERVER_NAME
> Timeout connecting to <ip address>
> Timeout connecting to <ip address>
> cli_start_connection: failed to connect to <VISTA_SERVER_NAME> Error
> NT_STATUS_ACCESS_DENIED
>
> Gentlemen, I’m at a complete loss. I know I’m close here, and I’m
> eager to use openSUSE. Is there any other information needed to render
> aid?
>
> thx.
>
>
Have you read the information at swerdna’s site? (See my earlier post.) Are
both machines on the same subnet? How are you physically connecting the two
machines (wireless, cable, switch)?

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Hi,

You want to access the files on your windows box from your Linux notebook so you can listen the music files which are stored on your windows box with your Linux notebook, right?

Let’s start at the beginning. :slight_smile: What is a server for? As it’s name says it serves other programs something. A print server e. g. serves printing ressources for other programs.

What is a client for? A client uses the ressources a server serves. So if you are using Open Office (or Word) and you want to make a print out Open Office is the client which sends the print job to the print server which is located at your machine or at another place in the network.

In your case the server is located at your windows box. Your windows box shares the files. Other programs at other computers in your network now can access those files with a client. If it is a Linux box the name of that client is samba client not samba server.

So you don’t have to install the samba server at all but the samba client. The server is for to offer shares and the client is to use them. You want to use shares and not to offer them in your network.

So you have to do three things:

  1. Uninstall the unused samba server until you’ll need it.

I recommend this cause it is an additional risk to run servers you don’t need and even more on an unsecure wlan. WEP is unsecure. If you want to know why and how you should do better just ask. :slight_smile:

  1. Install the samba client on your Linux box.

  2. Type in e. g. konqueror or any other program in the open file dialogue


smb://windows_box

“windows_box” you have to replace with the Netbios name of your windows box. If you don’t know it open a command window at your windows box and type


ipconfig /all

At the top of the result the machines name is given.

After typing the line with smb in your linux box you should see the shares of your windows machine. Choose one and you will be prompted for the user name and password. After giving them you will be able to access your music files.

BTW: In your place I would do it the other way around. I would use the server with linux to store the files and listen to the music with windows. The multi media ressources Linux offers are a bit poor and you have to configure a lot which works ot of the box under windows. And even more when you are using a notebook. I just had a great dog fight with my new Asus notebook to make it noisy. :wink:

[edit]
Just forgot this: Perhaps you have to configure your windows firewall or just switch that thing of.
[/edit]

Greetings

Erik

Erik, thank you for your reply.

At the time that I was looking for the Samba configuration it occurred to me that the server was maybe not what I wanted. I got it into my head that maybe that’s just what openSUSE called it. Using Vista makes one forget the accuracy of most things linux.

I think I installed the samba client correctly, I know I uninstalled the samba server. When I type <smb://vistaservername> nothing happens for a while then I get a failure message. Is there a configuration for samba?

I had correctly set up samba on this same vista server on a different linux distro in the past. I did not stay with that version due to the difficulty I had in getting it working on the wifi. I remember the samba setup being a very simple process. I turned on the samba client, attempted to look at the samba share, then was asked for the vista username and password. I’m not seeing that here and I’m still at a loss. However progress is being made!!!

Thank you for your help.

i have followed your instructions to the letter. nothing happens when i type smb://**** in kongqureor

i have no windows firewall.

any other suggestions?

thxin advance,

On Wed December 24 2008 12:16 am, Vhulheim wrote:

>
> i have followed your instructions to the letter. nothing happens when i
> type smb://**** in kongqureor
>
> i have no windows firewall.
>
> any other suggestions?
>
> thxin advance,
>
>
So far you have not answered my earlier reply, let me add one more item.
Can you ping the Windows box?
Post the results of:


ping -c5 <ip of windows>

And please tell us something about your network topology. (i.e. How are you
connecting your machines.)

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

i just pinged my vista box from the laptop running openSUSE and the ping is fine, no packet loss.

I have a vista x64 ultimate install on my main pc. I have a cable modem connected to my router which is a netman. I know how to port forward and all that jazz so its config is fine. I have a linksys wireless bridge connected to the router which allows my neighbors computer downstairs to share my internet. as a courtesy i allowed her access to my shared movies and music folder so she can watch movies downstairs in her room. this is how i know the wireless bridge and router are configured correctly.

i’m pretty good at all the network lingo and know how to do all the windows networking stuff. at this point i’m wondering if i even have the samba client installed correctly. from what i’m seeing and as i’m sure you’ll agree, it appears that everything is connected correctly. I think its just a samba config issue.

On Wed December 24 2008 05:46 pm, Vhulheim wrote:

>
> i just pinged my vista box from the laptop running openSUSE and the ping
> is fine, no packet loss.
>
> I have a vista x64 ultimate install on my main pc. I have a cable
> modem connected to my router which is a netman. I know how to port
> forward and all that jazz so its config is fine. I have a linksys
> wireless bridge connected to the router which allows my neighbors
> computer downstairs to share my internet. as a courtesy i allowed her
> access to my shared movies and music folder so she can watch movies
> downstairs in her room. this is how i know the wireless bridge and
> router are configured correctly.
>
> i’m pretty good at all the network lingo and know how to do all the
> windows networking stuff. at this point i’m wondering if i even have
> the samba client installed correctly. from what i’m seeing and as i’m
> sure you’ll agree, it appears that everything is connected correctly. I
> think its just a samba config issue.
>
>
Vhulheim;
I am a bit concerned with the timeout error of your earlier post. This could
be bad cable or config.

  1. Are these ports open on your OpenSuse box?
    TCP 135, 139, 445
    UDP 137, 138
  2. Are broadcasts allowed on the OpenSuse box?
  3. Is nmbd running?
  4. What is the result of?

smbclient -L <vistaip> -U guest


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

I got the following:

Domain=[SKARO] OS=[Windows Vista ™ Ultimate 6001 Service Pack 1] Server=[Windows Vista ™ Ultimate 6.0]

    Sharename       Type      Comment
    ---------       ----      -------
    ADMIN$          Disk      Remote Admin
    C$              Disk      Default share
    D$              Disk      Default share
    E$              Disk      Default share
    IPC$            IPC       Remote IPC
    Public          Disk
    V Movie         Disk
    V Music         Disk
    Waste           Disk

session request to 192.168.1.2 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled – no workgroup available

As far as open ports on the suse box, i have the firewall disabled and dont really care to enable it.

What are broadcasts?

When I type rpm -q nmdb it says its not installed

On Thu December 25 2008 02:46 am, Vhulheim wrote:

>
> I got the following:
>
> Domain=[SKARO] OS=[Windows Vista ™ Ultimate 6001 Service Pack 1]
> Server=[Windows Vista ™ Ultimate 6.0]
>
> Sharename Type Comment
> --------- ---- -------
> ADMIN$ Disk Remote Admin
> C$ Disk Default share
> D$ Disk Default share
> E$ Disk Default share
> IPC$ IPC Remote IPC
> Public Disk
> V Movie Disk
> V Music Disk
> Waste Disk
> session request to 192.168.1.2 failed (Called name not present)
> session request to 192 failed (Called name not present)
> session request to *SMBSERVER failed (Called name not present)
> NetBIOS over TCP disabled – no workgroup available
>
> As far as open ports on the suse box, i have the firewall disabled and
> dont really care to enable it.
>
> What are broadcasts?
>
> When I type rpm -q nmdb it says its not installed
>
>
Samba client works. It is nmbd not nmdb, but nmb is provided by the Samba
rpm. Just installed does not mean its running, try:


ps -A | grep nmb

The nmb daemon provides name resolution for windows netbios. If it is not
running be sure the samba rpm is installed, then go to, Yast->system->system
services, where it can be enabled. Alternatively,


su
rcnmb start

KDE4.0 had problems with displaying Samba shares, I understood this was fixed
with 4.1. so the problem may be related to your GUI. If you are using KDE
4.0, try 4.1 or 3.5.


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

ok, i did what you said. When i did the grep command nothing happened which if i remember is a good thing with linux CLI.

here’s what i got:

Domain=[SKARO] OS=[Windows Vista ™ Ultimate 6001 Service Pack 1] Server=[Windows Vista ™ Ultimate 6.0]

    Sharename       Type      Comment
    ---------       ----      -------
    ADMIN$          Disk      Remote Admin
    C$              Disk      Default share
    D$              Disk      Default share
    E$              Disk      Default share
    IPC$            IPC       Remote IPC
    Public          Disk
    V Movie         Disk
    V Music         Disk
    Waste           Disk

session request to 192.168.1.2 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled – no workgroup available

I dont know why i can’t see the workgroup.

Also, when i started the deamon it did tell me that it started successfully.

Hi,

sorry that I didn’t answer sooner. I had a real bad cold.

That seems to be the problem. The last lines should look like this:


        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        RODERWALD            BUERO

AFAIK those lines like yours normally mean that the machine you are calling isn’t a smb-Server. Well, we are sure it is cause it works with plain windows. So let’s try this: Type in your konqueror



smb://ip_of_the_windows_box


and tell me what happens. I have sometimes the problem connecting my notebook with windows servers that it doesn’t work with host names but with ip addresses. The problem is the browsing mechanism. After usig the ip it also works with the name. Don’t ask me why. Bill doesn’t want me to know that. :wink:

Greetings and Merry Christmas

Erik