Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed Samba on RH 9 and can see my redhat box on my XP box but when I try to access it I get a message thaqt says dublicate name exists on network
I would assume this is because the redhat name is localhost. I need to know how to change it. I read a post that said go to /etc/sysconfig/network and change the hostname I tried that and got permisson denied, I am installing updates but I wouldnt think that would effect it?
it's not the problem.
Edit /etc/host and set up your network with address and full domain name (i.e.: 127.0.0.1 localhost.localdomain localhost)
Edit /etc/samba/smb.conf and take a look of the parameters
Change what you need, save it (as root) and run testparm watching if all is OK.
Type /etc/rc.d/init.d/smb restart
Type here the results
Actually what nightjar posted isn't really 100% correct or maybe I misread the problem. I think soonerdm is saying that he can not access the RH box from XP. /etc/hosts file just resolves IP addresses to names on the linux PC which does not effect the windows PC.
samba uses the hostname of the PC as default (which is localhost in this case) unless there is a netbios name= entry in the smb.conf file.
If you want to change the computer hostname then editing the /etc/sysconfig/network file will work but you need to be logged in as root to edit files in /etc/ directory.
Either change the hostname or adding a netbios name in your smb.conf file should fix the problem.
Originally posted by soonerdm ... I get a message thaqt says dublicate name exists on network
I would assume this is because the redhat name is localhost.
It's not correct.
He cant access because he has a wrong setup of the samba.
I don 't know how security is setting, what is their workgroup and the permissions of the browseable (or not) dirs of linux, if its are publics, etc
The correct way is edit the smb.conf (as root) and change what he want (and need) to change.
Make sure the workgroup name in smb.conf file matches XP workgroup name.
In a DOS command box try
net view
or
net view \\ipaddr (Use IP address of the linux PC)
I had a similar problem when my Dad's computer had a hard drive failure. My fix was to add the IP address, computer name to the XP's lmhosts file.
This will require a static IP address for the linux PC.
Remember from this point that windoze usually establish relation with linux via samba. The name of ur computer is not the problem; but the IP, the workgroup, the share dirs, which hosts are allowed, etc. that ever u must set up via samba (/etc/samba/smb.conf).
Localhost is the default route to access the computer you are using, not a computer name . Then you dont must change this parameter of the network file
Okay so I see the redhat machine in my network neighborhood when I click on "VIEW NETWORK COMPUTERS" When I click on the redhat box I get the error Network path not found.
I used the net view \\192.168.2.103 and I got
"System error 53 has occured
The Network path was not found"
so I went back into the smb.conf and uncommented the
host allow = 192.168.1. 192.168.2. 127.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.