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 got my D-Link 530TX+ card to finally work and got it installed. I know it is properly installed because I can ping its address I assigned it (10.10.0.1) and the internal address (127.0.0.1).
I can ALSO ping the Windows machine that it is hooked up with (on a peer-to-peer, hubless network using Xover cable). My Windows machine is 10.10.0.2.
I can ALSO ping the Linux (Red Hat 8) machine from my Windows machine.
However, when I go to the GNOME Menu > Extras > Server Settings > Samba Configuration, a Mozilla browser window pops up trying to access http://127.0.0.1:901 and I get an alert that says, "The connection was refused when attempting to contact 127.0.0.1:901." and I cannot configure it!
My Windows Laptop's name is //cp-laptop.
I set up the Linux PC's name in samba to be //cp-linux
They don't communicate with each other.
If I try to do
# smbmount //cp-laptop/c /home/cparker/laptop
from my Linux PC, I get a message saying
16092: Connection to cp-laptop failed
SMB connection failed
In case it's not obvious, I want to mount all the contents of the Laptop's C:\ drive (shared as "C") to the /home/cparker/laptop directory on my Linux PC.
Apparently, samba isn't doing its job, because I can't even mount a share from my own Linux PC.
I think we dealt with something like that in a really long samba thread here, if I'm right it has to do with the way samba turns names into IP addresses.
smb.conf:
...
name resolve order = bcast host lmhost wins
...
If you don't run the nmbd deamon you won't get any sort of name resolution or browsing happening.
You can still mount shares by putting static entries in /etc/hosts, or (correct me if I'm wrong) /etc/samba/lmhosts and then you will be able to connect using names. But using nmbd is so much easier don't you think?
...
#name resolve order = bcast host lmhost wins
#after looking at my suggestion earlier in the
#thread and at your setup again I think maybe
#this one instead:
name resolve order = host lmhost bcast wins
...
/etc/samba/lmhosts sounds right but I think the downloaded samba packages use one dir and every different distro uses something else. Man smb.conf (and the source Makefile) say lmhosts should be in the same dir as smb.conf but make sure you aren't looking for lmhosts in a dir with just a symlink to smb.conf.
Either way using your /etc/hosts works and won't cause any problems with just a small home network.
And here is the simplest smb.conf I can think of for testing. Back up yours and use this if it still doesn't work at this point:
Code:
[global]
workgroup = HOME
netbios name = CP-LINUX
log file = /var/log/samba/%m.log
#more debug info
log level = 3
name resolve order = host lmhost bcast wins
#these 3 below slap the win box to MAKE
# it broadcast it's netbios name to samba
# and redo net neighborhood list
os level = 30
local master = yes
preferred master = yes
[test]
path = /dev/nulll
browseable = yes
#this shows up in net neighborhood if it works
You prolly won't get logged in with this smb.conf but should see both computers in window's net neighborhood, even if the tmp folder doesn't open or let you log in at least you know samba can work and you can merge this with your original smb.conf to get it working.
Your inablility to ping localhost (post #3) probably comes from someting missing in /etc/hosts file.
(like
127.0.0.1 loopback localhost loghost
10.0.0.1 linuxbox
10.0.0.2 whidowbox
....
)
Chapter 11 of Samba by John Blair gives good step-by-step on how to diagnose a samba SERVER. Still, some of the steps is useful in diagnosing samba client. (Like the use of command smbclient) Or you can try seraching using keywords like SAMBA and DIAGNOSTICS to get to a web page with similar procedures.
You have set your user id/password on your widiwbox, right?
You can try
smbclient '\\windowbox\directory' -U windouwboxusername [-W domainname]
and see if you need a password to "get in".
If you do, try
smbmount //windowbox/directory /mnt/smbmount -o username=windowboxusername,password=windowboxpassword
No space around the comm after -o.
make sure nmbd is running
your smb.conf doesn't setup any share files so you won't be able to mount any either from linux or windows.
you don't have a guest account listed in your smb.conf so you will need users in the smbpasswd file. You didn't mention what version of windows you have. 9X machines can use PAM because they don't encrypt passwords. Since you enable encryption on Samba that disables PAM even though you enabled it (hope that makes sense)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.