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 have RedHat 7.1 and samba 2.0.7-36 installed on my computer. My task is to configure my Linux machine as a Samba server so that I can log into it from my Windows 2000 machine.
The followings are the steps I tried:
1. "cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd"
2. "chmod 600 /etc/samba/smbpasswd"
3. "smbpasswd root" and then enter a new password.
4. Uncomment the following lines in the /etc/samba/smb.conf file:
workgroup = DOMAIN (which is the name of the workgroup of my Windows 2000 machine)
server string = Samba Server
6. "service smb restart".
When I tried to access my Linux machine in Windows 2000 under "My Network Places"->"Microsfot Windows Network"->"domain", I saw my Linux machine with the name "Localhost" and the description string "Samba Server".
However, when I tried to double-click it, it said
\\Localhost is not accessible
A duplicate name exists on the network
When I right-clicked and selected properties, it said
The server Localhost does not accept remote requests
The hostname of my Linux machine isn't Localhost, as it showed "MARTIAN" (which is the name I assiged to it) when I typed "hostname" in a Linux shell prompt.
Does anybody have a clue as of what's going on in my situation? Any kind of pointer is appreciated, thanks!
Gee I thought I was the only one going crazy on this for 3 days now... If you get an answer I would deeply apreciate you emailing me with results.
I have done configuration changes- reinstalled Samba I still get this error over and over again...
"The following Error occurred when trying to join the smis domain..
Then account used is a computer account. User your global or local account to access this server".
It getting like Kurt Vonneguts "Slaughter House Five" and so it goes....
Very frustrating so far and it no fun not have success sometimes...
"There is a God we want, and there is a God who is. They are not the same God. The turning point of our lives is when we stop seeking the God we want and start seeking the God who is."
Patrick Morley
Seven Seasons of the Man in the Mirror
p184
I found that the Linux machine and Windows 2000 machine can only ping each other by their IP addresses, but not their Netbios name. I tried to
nbtstat -a 192.168.0.8 (which is the IP address of my Linux machine)
in a DOS prompt on my Windows 2k machine, but it said "Host not found". Some trouble shooting guide suggests that it's because the port 137 is blocked. Do you know how I can open up the port 137? Thanks a lot!
and now I can't even start the smbd and nmbd daemons! I'm not sure if this is related to the disabling of the firewall, but I could start the two daemons with
service smb start
or
samba start
before I did that "service iptables stop". Is there a way to enable the firewall again? Thanks a lot!
My hostname was "localhost.localdomain" originally and I changed it to "Martian" by editing the /etc/sysconfig/network file. I rebooted and tried to start Samba but it wouldn't run. So I looked into the nmb.log file in /var/log/samba and saw the line
Get_Hostbyname: Unknown host Martian
So I changed it back to "localhost.localdomain" and rebooted. Now I can start Samba.
However, on the Linux machine, I still can't ping itself using its Netbios name. Its Netbios name is "Martian" as I set in the smb.conf file, and the IP address of the WLAN card installed on the Linux machine is 192.168.0.8. I did
ping 192.168.0.8
and
ping 127.0.0.1
and it succeeded to ping itself. However, when I did
ping Martian
ping: Unknown host Martian
I've already disabled the firewall by
service iptables stop
and I think the ports 137-139 should be open by doing this. However, this still can't solve my problem.
I tried to do a
nmblookup -T DOMAIN#1b (DOMAIN is the name of the workgroup the other Windows machines are in)
and it reported "192.168.0.2 DOMAIN<1b>" so the domain master browser is the Windows 2000 server machine (IP: 192.168.0.2) on my network.
I also did a
nmblookup HOST (where host is the Netbios name of any machine in the workgroup DOMAIN)
and I could get the IP address of EVERY Windows machine on the network EXCEPT the Linux machine itself! (neither "nmblookup Martian" nor "nmblookup localhost.localdomain" worked).
Finally, when I checked the nmb.log file after Samba was started for a while, I saw the line
Samba name server is now a local master browser for workgroup DOMAIN on subnet 192.168.0.8
Could someone solve my problem? I can provide any information you need... Thanks a lot!
Be in root.
try disabling the iptables
cd /etc/samba
samba#iptables -a off (could be -al)
samba# samba stop
samba# samba restart
I don't know if this 100% command perfect but the idea is to turn them off and see what kind of results you get.
With mine I found that they were somehow interfering with my router which would in effect cause a collision on the network. Because you in effect have two routers hitting head on.
didn't work. Actually, I can turn off the iptables by
service iptables stop
Is it correct? However, I still cannot ping myself using the NetBIOS name of my Linux machine, that is, Martian. Let me clear things up a little bit: (For my Linux machine)
I can "ping localhost.localdomain" but I can't "ping Martian" or any other Windows machine by their hostnames.
After playing w/ the smbclient command for a while, here's what I've found. I did "smbclient //windows_server/some_folder -Usome_name" where
windows_server: the hostname of the Windows 2000 Server machine on my netowrk
some_folder: a folder it shares
some_name: the name I log on to it from my Windows 2000 machine.
and I could access the some_folder from my Linux machine! I also did a "smbclient //localhost.localdomain/tmp -U root" and I could also access the share I specified in smb.conf on my Linux machine.
When I tried to access my Linux machine in Windows 2000 under "My Network Places"->"Microsfot Windows Network"->"domain", I saw my Linux machine with the name "Martian" and the description string "Samba Server".
However, when I tried to double-click it, it said
\\Martian is not accessible
The network path was not found
When I right-clicked and selected properties, it said
The server Martian cannot be found on the network
So I can access from Linux to Windows with smbclient, but not from Windows to Linux with "My Network Places" or "net use". Can somebody figure what's going on? Thanks a lot!
I'm having the exact same problem. I can mount my Windows shares from my LINUX box (RedHat 9) with no problems. I cannot, however, get to my Samba shares from either of my Windows machines (one running Win2k, one running 98).
I can ping the LINUX box by both IP and hostname, and it is showing up in Network Neighborhood correctly (it's even in the right Workgroup!). When I try to navigate to it in Windows Explorer, I get: "\\machinename is not accessible. The network path was not found."
I have also tried navigating with:
\\machinename
\\machinename\sharename
\\machineIP
\\machineIP\sharename
Nothing works, unfortunately.
I did turn password encryption on in my smb.conf file, and I created a user with the same username/password as my Windows login on the LINUX machine. After adding the user/password with smbpasswd, it still won't let me in.
(Note: As for the ping problem, I was getting the same thing. All I had to do was add the local machine name in my \etc\hosts file. Suddenly the LINUX box knew "who it was". )
I managed to solve my problem by turning the firewall off. Some people told me to turn it off by
service iptables stop
but it didn't work for me. Then, I found that there's a tool called "lokkit" for RedHat Linux. Just type
lokkit
at your command prompt and you'll be directed to a page where you can set the security level of the firewall. You can simply turn it off there. After I turn it off, every thing works fine for me. If you're not using RedHat Linux, you may wanna ask other ppl for the proper way of turning the firewall off.
Originally posted by paranoia1980 I managed to solve my problem by turning the firewall off.
Hope this helps =)
It worked perfectly!
Strangely, I could have sworn that when RedHat was first installing, it asked whether I wanted the firewall set up and I said "No" (since I'm already behind a hardware firewall). Ah well, everything seems to be working now (and I can use SSH too!).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.