Click to See Complete Forum and Search --> : Samba


The_Dark_Stuff
04-09-2003, 03:07 PM
Trying to configure Samba

Overview
3 pc's networked
1 XP
1 98
1 RH8


PC1 (XP)
----------

Logon -Fred
Passwd -Fred01

PC2 (98)
-----------

Logon - Fred
Passwd - Fred01

Same as 1


PC3 (RH8)
-------------

Logon - fred
Passwd - different


Samba installed and shows in the Network Neighbourhood of both 1 and 2

Currently trying to browse the RH share from 1 & 2 does not work

How must I configure Samba with regard to Passwords (SWBPASSWD) relating 1 and 2 if at all ?

I have attempted shares that allow (should) allow anyone to view but no joy - even the most basic of smb.conf


Interestingly 1 (the XP) states

"
\\Localhost is not accessible. You might not have permission to use this network resouce. ...

You were not connected because a duplicate name exists on the network. Go to system in Control Panel ... <to change>"

Any checks/advice ?

Hayl
04-09-2003, 03:13 PM
you have to have a user account on the red hat box with the exact same user name and password as the windows boxes are using.

create the new account then

then:

smbpasswd account_name

and then enter the password the same as the corresponding windows one.

regarding the dupe name on teh network - are you totally sure that none of the machines have the same name?

DMR
04-09-2003, 04:38 PM
Originally posted by The_Dark_Stuff
Interestingly 1 (the XP) states

\\Localhost is not accessible. You might not have permission to use this network resouce. ...

You were not connected because a duplicate name exists on the network.This isn't an issue with Samba per se; that's a Windows error message relating to the SMB/CIFS protocol.

I think the error is a result of your using "localhost" as the NetBIOS name of the Samba server. "localhost" is a special reserved name which resolves to the local loopback device (127.0.0.1) present on any machine running TCP/IP. Without getting into the gory details of NetBIOS name resolution and address binding, let's just say that the reference to localhost will confuse a Windows client machine if you ask it to connect to a machine named "localhost".

In your smb.conf file on the Samba box, enter a unique name in the "netbios name=" entry.

Also, if you haven't assigned the Samba box a unique system hostname (something other than "localhost), you should do so.

The_Dark_Stuff
04-14-2003, 07:09 PM
Thanks for advice

Just to let you know I finally got this working

renamed the localhost to something else

But for me the reason it was not working was the RH box had medium security level

Once this was cranked to none, there was no problem !!!!!

I probably selected medium as this is the default (I think) when you install

Also I did the following which may have helped :

- Changed all logon's and passwords the same (windows, RH and Samba)

DMR
04-14-2003, 07:53 PM
Originally posted by The_Dark_Stuff
But for me the reason it was not working was the RH box had medium security level

Once this was cranked to none, there was no problem !!!!!You're right, I forgot about that. Redhat's medium and high firewall (iptables) settings block a lot of ports/requests/services that you'll need on a LAN, including access to ports lower than 1023 (Samba uses ports 137-139). If you want, you can customize the security level to allow certain services.

Originally posted by The_Dark_Stuff
Also I did the following which may have helped :

- Changed all logon's and passwords the same (windows, RH and Samba) If you mean that you made every username/password combination the same across the board then yes, that helped as well.

:)

The_Dark_Stuff
04-15-2003, 03:16 PM
Cheers Mod !

Excellent Forums by the way !!

DMR
04-15-2003, 08:34 PM
Originally posted by The_Dark_Stuff
Cheers Mod !

Excellent Forums by the way !! Thanks being the only recompense that we get for doing our job here, we thank you in kind.

;)