Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I hope this is a simple question. I'm was able to get Samba to see my server (WIn 2000) and all the other workstations (XP) in my network. Plus all network folders. The problem i'm having is getting a shared folder/drive/anything to be seen by any other workstation and my RH computer. When I click on the computer icon for my RH box with in RH Network Servers, I get this error.
Couldn't display "smb://myRHcomputer/", because no host "myRHcomputer" could not be found. Check that the spelling is correct and that the your proxy settings are correct.
I downloaded the latest Samba. I think this is why I am able to see my other pc's.
Please help, looking for the quick fix, yea right.....
Thank you for replying. I would like to create the shared folder on the Red Hat box and be able to connect to it from XP/windows. In Windows I have to create a shared folder in order to see any thing over the network. I don't know how to explain it in Linux.
I'm running RH 9. I tried to do service smb status from a command line and it only told me "bash: service: command not found". Do I have in be in a certain directory? I was able to fine it in the Services Configuration and not it was not running. I check it and started the service on it. Do I need to start anything else? I'm rebooting now. Not sure if I really need to reboot or not...
I can see from your click-attempts that you're pretty much a newbie when speaking of Linux. First of all, clicking around in the desktop environment you're running is exactly what most Linux users don't do. The power of Linux is that it is developed from command-line programs (the UNIX tradition) and that the graphical environment lays on top of that.
So, I can't help you with "computer icons" and such. Sorry.
If you want to share files through the Samba protocol (smb), you'll first need to make sure the daemon is running. Do a "ps aux" and check if among the processes listed is a "smb" process.
user $ ps aux | grep smb
If there is, that's good. If it is not start it:
root # /etc/init.d/smb start
Now, you probably have no idea if you're sharing any files. Samba is configured in /etc/samba/smb.conf. It gives indeed some good examples, as well as having some defaults. If the smb.conf shows for instance an entry for "homes" or something, you're probably sharing already your home directory.
Now you should be able to see at least the computer name out of Network Neighbourhood from Windows 2000 or XP.
Any more problems? Just report. But make sure you try the command-line tools, before doing the same thing in a graphical environment. It could always be a bug of the graphical software you're using.
No, you do not need to reboot.
The Service Configuration GUI allows you to start, stop and restart services.
When you check it, it means that the service will be activated when the computer boots up.
To configure samba, you can use the new GUI tool that is available in RedHat 9.
At the command line, type: redhat-config-samba
Or it is in the menu, go to System Settings, Server Settings and click Samba Server.
Don't forget to restart the Samba service after making modifications.
Yea, I'm a noob, somebody shoot me....... The redhat-config-samba works great. I can see all of my Windows pc from Red Hat 9. I also can see the Red Hat pc from Windows. What I can't see are any of the shared folders on the Red Hat pc when going into Network Server. I can see the Windows shared folders from Red Hat. Let me try and explain it this way.
step 1 - I click on the Red Hat
step 2 - I click on Network Server
step 3 - The GUI shows my domain and I click it
step 4 - The GUI then shows all my computers on the network
step 5 - I click on one of the Windows pc ( it works ) can see all shared folders
step 6 - I click on the Red Hat pc ( it does not work ) and get an error
step 7 - The error I get is ( couldn't display "smb://myredhat/", because no host "myredhat" could be found. Check that the spelling is correct and that your proxy settings are correct.
step 8 - I'm a noob
step 9 - I have no idea where to look and what to do about the proxy settings.
step 10- I'm a super noob
Basically, I can see Windows shared folders from Red Hat 9 under Network Server. I just can't see Red Hat shared folders from Network Server or from any Windows pc. Even though the Red Hat pc shows up in Network Places under Windows.
The error I get when I click on the Red Hat pc from with in Windows is "\\myredhat is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permission"
The network path no found.
I still say Linux is a stronger OS just a little hard to understand.
PS. What do I type to get my smb.conf and what directory do I need to be in?
Now we we now a little bit more. Great!
First your last question: smb.conf. Under RedHat it is located under /etc/samba. You should use a text editor to access it. Probably you're not yet used to the more esoteric editors like "vi" (you should though). Just use any editor from out of the program menu.
In your first post you mentioned a hostname called "myRHcomputer" but in your last post it was "myredhat". What is your hostname? Type "hostname" from the command-line to find out. If it is something different, type in one of the browsers you got on the GUI the URL again: smb://hostname/. Any luck?
Also be careful that Windows 2000 has sometimes strange reactions when a combination of NetBIOS and DNS is used. Make sure the hostname and IP address of your RedHat machine are also known under Windows. Easiest to check it with a ping from Windows of the RedHat hostname. If this is wrong, the lines below are not of use.
If "myredhat" is showing up in Network Places under Windows, you can be sure that Samba is running and functioning. But if you get the message that it is not accessible it could be that the file permissions used are not right.
Start editing /etc/samba/smb.conf. Make sure there is an entry like this one: "encrypt passwords = yes". Add to make sure your NetBIOS name as well: "netbios name = myredhat". Add for start a section like the one below. If there is one already, don't bother changing it.
browseable = no
writable = yes
valid users = %S
This can probably can be done as well from the Service Configuration GUI.
For any user accessing Samba shares there needs to be a corresponding user in Samba's configuration. So, if you connect as Administrator from Windows to Linux, Linux has to know about a Administrator user. If you have problems with this (that means: you get a password prompt but can't login) you're best off posting another thread.
We've now seen three hostnames of your computer: "workstation-03", "myredhat" and "myRHcomputer". Wouldn't it make sense to stick to one hostname?
If you type in the commandline "hostname" the output should be the same name as defined in smb.conf. If it is not, open a text editor to change /etc/samba/smb.conf to have "host name = " followed by your real hostname.
How to use a text editor? Well, a good start would be to get into Linux more and read some of the HOWTOs. But to solve your problem right away: We Don't Care What Kind Of Text Editor You Use. So "Text Editor" = "Word Processor" = "Office Suite". You have to be root though to edit the file.
On your Windows machine, start a window and type in the Address Bar "\\xxx.xxx.xxx.xxx" where the xxxs represent your IP address. Any luck?
If you're not using DNS inside your little network, maybe it is a good idea to do so. Maybe your modem supports an easy to configure DNS table? If DNS is not an option or takes too much time, in Windows edit a file called lmhosts.conf (add your real RH hostname and IP address) and import it into the Properties of your network interface.