LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-02-2004, 11:10 PM   #1
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Rep: Reputation: 30
Question Samba


I have a Linux samba server that I am trying to access from a Windows computer. The server's description is Samba Server and I would guess the computers name is localhost. I have once successfully connected to it but then my power went out and I can't seem to access it again. Anyway when I click on the computer from My Network Places I get the following message:

"\\Localhost is not accessable. you might not have access permission to access this network resource. contact the administrator of this server to find out if you have access permissions.

You were not connected because a duplicate name exists on the network. Go to system in control panel to change the computer name and try again."

Could someone please tell me what to do. I don't know of another computer on the network named localhost. Plus I have gotten it to work before.

Thanks,
 
Old 06-02-2004, 11:39 PM   #2
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
I don't think you actually had it working using the hostname localhost, because that refers to the machine on which you are typing, always. Every machine thinks localhost is itself. Its a name that always refers back to itself, known as a loopback.

In the smb.conf of your Linux machine, there should be a line for "netbios name". Change that to what you want the Linux machine to known as, restart Samba on that machine, and then trying looking for it in Network Neighborhood.
 
Old 06-03-2004, 12:21 AM   #3
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
I am positive I had the Samba working and was able to access it from my XP Home machine. So basically you are saying that the computer I am trying to connect to the Linux computer from is referring to itself when it says there is another computer with that name? Then how do I change the Linux computer's name from the default name localhost?

Thanks,

Last edited by newuser455; 06-03-2004 at 12:22 AM.
 
Old 06-03-2004, 05:04 AM   #4
villie
Member
 
Registered: Apr 2004
Location: Pakistan
Distribution: RedHat
Posts: 46

Rep: Reputation: 15
You can change the hostname by changing the entry in the /etc/hosts file or by using hostname command.

Villie
 
Old 06-03-2004, 12:01 PM   #5
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
No, that did not work. The name of the linux computer is displayed exactly "samba server (localhost)" in My Network Places from the win XP computer. The samba server part I know how to change in the smb.conf file but I still do not know how to change the localhost part. I am still getting the following masseage when trying to access samba from the win XP home computer:

"\\Localhost is not accessable. you might not have access permission to access this network resource. contact the administrator of this server to find out if you have access permissions.

You were not connected because a duplicate name exists on the network. Go to system in control panel to change the computer name and try again."

I still think it is the localhost that is causing the problem. By the way I have seen other peoples' forums who have had the same problem, but the replies have not helped me.

Thanks,
 
Old 06-03-2004, 12:29 PM   #6
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
So you did change the "netbios name =" line?

What distro are you using? There may be system tools included with your distro to change the hostname.

Or try "hostname <new hostname>" at the command line.

Last edited by sorrodos; 06-03-2004 at 12:31 PM.
 
Old 06-07-2004, 04:26 PM   #7
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Ok, I did that and it changed the hostname, but from the XP computer it still says localhost in parenthesis. There is no netbios name= in the smb.conf file. I'm using RH 9.0 with gnome and kde.

Thanks,

Last edited by newuser455; 06-07-2004 at 06:42 PM.
 
Old 06-07-2004, 07:08 PM   #8
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
I saw another forum that said the beginning of the global section of the smb.conf should look like this:

[global]

# netbios name
netbios name = name

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
server string = Samba Server

## define a global case policy for file shares
case sensitive = no


Mine looks like this:

[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
server string = Samba Server


Should I add the netbios name= part?

Thanks,
 
Old 06-07-2004, 07:35 PM   #9
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Thanks alot for you help. I added the netbios name= into the smb.conf now it works.

Thanks again,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration