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.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
at first glance the only thing isee out of the ordinary is a line for your netbios name. under global settings under your workgroup entry add
netbios name = yournetbiosname
other than that i have some ?'s. let's start at the begining. can you ping from one box to the other, and vice/versa, successfully? if so, what users have you permitted to access the windows shares? have you created samba users? have you restarted the samba daemons? are you running a firewall on either box? can you see either workgroup, from either box, or are the boxes on the same workgroup? that's all a bit to chew on, but, these are some of the most common problems i've seen w/setting up the samba. possibly your answer is in one of those ?'s. i recommend turing of all firewalls, until you get it working.
good luck.
I'm not quite sure why there isn't a wizard to create a home network. how many people have routers with DHCP networks.. the only thing one would need to inout is workgroup....
I'm having problems with my samba setup.. winXP can see my computer but not connect to it. What is especially is that it see my PC twice.
#1 Rob's PC(Rob)
#2 Rob's PC(ROB_LINUX)
I have a simple home network, all Windows boxes except for this machine.. The network is secure so I really prefer to have people be able to connect w/o entering login info...
here's my smb.conf
[global]
workgroup = CREST101
netbios name = ROB_LINUX
netbios aliases = Rob
server string = Rob's PC
security = SHARE
map to guest = Bad User
null passwords = Yes
time server = Yes
socket options = S0_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
os level = 2
ldap ssl = no
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0640
directory mask = 0750
browseable = No
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775
[robojerk]
comment = default
path = /home/robojerk
read only = No
guest ok = Yes
Hello PEACEDOG,
I changed the workgroup name to match the workgroup name on the W2K machine. I altered /etc/HOSTNAME from linux.local to Duquesne.WORKGROUP. In smb.conf I then added the line netbios name = Duquesne. I am the only one using the linux box and have set myself up as a poweruser on the W2k machine. Same login name and password on both machines. I have not added any samba users. ifconfig shows a DHCP assigned IP on the linux machine. I can ping that IP from the W2k box. I can't ping the static IP of the W2k box from linux. I have a kde applet called local networks. It always says it can not find a workgroup. I've started lisa and it still gives the error. How do you restart samba, I just restarted the machine. How do you (and should I) start the lisa at boot time? The route command shows an IP of 192.168.0.0 which I can ping on the linux machine. It shows the IP for the W2k machine as the default gateway. The IP of the linux is 192.168.0.205. Thanks again for the help.
Glenn
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
if you can't ping the w2k box, your not going to share anything. do you have a firewall running on the windows machine? if so shut it down. as i had stated in an earlier post, one step at a time. we needto ensure the boxes can communicate first. once we get them pinging back and forth, then we can work on the file sharing, and everything else, but the first step is getting the boxes to talk.
The reason you see two PC's is because of the following:
netbios name = ROB_LINUX
netbios aliases = Rob
Use one or the other, nothing is wrong with using both. You will see two machine names in your Network though.
Also check your "security = SHARE" part. You might want to set it to "security = user" and then create the appropriate accounts in smbpasswd. Here's a link explaining Samba security levels a bit more:
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
great, the boxes are now talking. keep in mind you'll have to make some provision for this once everything is working. w/that said, you need to add samba users.
smbpasswd -a <username>
use the same username and password you already have. the share on the windows machine must also allow this username, and password. once you've added the samba user/users, then you'll need to restart the daemons.
smbd restart
nmbd restart
once this is done, you may or may not have to restart windows. if you do, be aware of the firewall.
PEACEDOG,
Using the smbpasswd -a <username (mine)>, I received an unknown parameter encountered "netbios" and Ignoring unknown parameter "netbios", it then prompted for SMB password which I entered and got an Unable to open passdb database and user added. On the smbd and nmbd restart I got bash: commands not found. I'm in as a user, using su.
Glenn
???PEACEDOG
I configured Norton to allow the IP and can still ping the linux machine.
On the linux machine, in the local network applet it showed my workgroup,
W2k machine and then asked for my login. It would not accept my password. I rebooted both machines and now the linux machine shows the workgroup folder but gives an unknown libsmbclient fault, and won't show the machine. So close and they pulled me back in.....
Glenn
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
ok configuring norton is what i was refering to earlier, when speaking about making provisions for the network. a firewall doesn't see a local area network any different than the internet or wan unless you specify it to. you do have to get the usernames and passwords correct though, as linux and w2k are case sensitive. i feel certain that if the workgroups are showing up, but, you can't connect to the shares, it's a user problem. why not check your windows shares, and the permissions on the same. you could even try setting them to allow the guest account, just be sure to configure a password for it. then when asked about the username and password, enter Guest, and the password you created. for the restarts instead of
smbd restart
nmbd restart
try
service smbd stop
service nmbd stop
service smbd start
service nmbd start
i'm not at all familiar w/suse, so the commands may be a little different, have a look at your help section for samba, and the documentation that comes w/suse to get the correct set of commands. the other thing to try would be instead of
su
try
su -
it may be a path problem. post any success/failure. again, check the permissions on the shares, i can't stress that enough.
good luck.
Hello PEACEDOG,
I've found out that I can only access my W2k box with the applet, logged in as root. I added Administrator and another smbuser. When it asks for user and password, I can use any of the above users. My W2k box shows the TEMP directory as shared, and I also made it a share as that user, but when logged into linux, I see SHARE= on the smb login, and it will not let me log in? I also can not see the linux box from Network Neighborhood. Whats next? And again thanks.
Glenn
Hello again PEACEDOG,
I figured out the permissions on the W2k box and my user can see the folder I have shared under the computername under the workgroup. Still can't see the linux machine from the W2k. Oh the linux also sees the printer on the W2k. What's next ??????????????.............................
Glenn
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
can you see the linux machine from windows w/out the firewall? have you made any changes to your smb.conf? now that you see the printer have you tried configuring cups?
PEACEDOG,
With the firewalls off, I can't see the linux machine. Apparently the linux machine defaulted to no firewall, as when I wen't to set it up with the wizard, I lost the ability to see the W2k machine, so I turned it off. I have not altered the smb.conf except as previouly mentioned.
Glenn
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.