LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2003, 10:52 PM   #1
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Rep: Reputation: 15
(SAMBA) Just doesn't want to work... :(


Here's my problem:

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!

What am I doing wrong?

I appreciate all help.

Thank you much.
 
Old 01-22-2003, 11:24 PM   #2
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
I gots it!

I did some searching and came to this thread:

http://www.linuxquestions.org/questi...t=127.0.0.1901

Thanks guys, even though you didn't help specifically me! You're the best!
 
Old 01-23-2003, 12:25 AM   #3
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
Hmmph!

If it's not one problem, it's another!

Okay...

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.

# smbmount //cp-linux/homes /mnt
16055: Connection to cp-linux failed
SMB connection failed

My Linux PC isn't recognizing its own NetBIOS name???

Still, I can ping my Linux PC from itself

# ping 10.10.0.1
pinging 10.10.0.1 (10.10.0.1) from 10.10.0.1

and I can ping my Windows Laptop from my Linux PC

# ping 10.10.0.2
pinging 10.10.0.2 (10.10.0.2) from 10.10.0.1

However, I never have access to the "localhost" name.

# ping localhost
ping: unknown host localhost

Could this have anything to do with my problem?
 
Old 01-23-2003, 12:40 AM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
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
...

maybe that helps
 
Old 01-23-2003, 04:45 AM   #5
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Can you post your smb.conf file? I would like to start by seeing how it is configured.
 
Old 01-23-2003, 10:04 PM   #6
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
smb.conf

here we are:

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2003/01/23 00:53:26

# Global parameters
[global]
workgroup = HOME
netbios name = CP-LINUX
server string = Red Hat Linux Box
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns_proxy = No
printing = lprng

[homes]
comment = Home Directories
path = /home
valid users = %S
read only = No
create mask = 0664
directory mask = 0775

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
 
Old 01-24-2003, 09:29 PM   #7
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Okay.

I have never created the smb.conf with Swat and I have not used PAM for authentication. My help may therefore be limited.

I have read that PAM doesn't work with encrypted passwords so this is going to be an issue at some point.

Secondly, make sure that you configured Samba to support PAM.

If you are not sure how to do this, you may want to try setting up Samba to use the smbpasswd file.
 
Old 01-25-2003, 10:21 AM   #8
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Let me know if you want info. on how to set up a simple Samba implementation using the smbpasswd file.
 
Old 01-27-2003, 10:00 AM   #9
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
-What exactly is PAM?

-Any information would be helpful.

-Should I have BOTH the smbd AND the nmbd daemons running in order for this to work?
 
Old 01-27-2003, 10:13 AM   #10
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
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?
 
Old 01-27-2003, 11:30 AM   #11
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Don't forget this smb.conf paramater:
Code:
...
#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.
 
Old 03-17-2003, 12:00 PM   #12
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
Just to let you know, I haven't forgotten about this post. I've just been SOOO busy lately.

That, and I kinda gave up for a little while.

I'll try all of your recommendations and get back to you to let everyone know what worked/what didn't work.
 
Old 03-17-2003, 01:18 PM   #13
Shin Takeshita
LQ Newbie
 
Registered: Dec 2002
Location: Novi, MI
Distribution: Red Hat
Posts: 25

Rep: Reputation: 15
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.

Good luck
 
Old 03-17-2003, 02:03 PM   #14
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
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)
 
Old 03-17-2003, 02:25 PM   #15
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
I'm currently using a Windows ME machine, although I plan on upgrading to XP Pro.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help getting samba to work dvdljns Linux - Networking 12 05-21-2005 09:13 PM
Win->Samba works, Samba->Win does'nt work outburst Linux - Networking 2 10-30-2003 08:31 AM
cannot get samba to work. rvn Linux - Newbie 2 10-26-2003 10:06 PM
still can't get samba to work... Tyir Linux - Networking 3 10-17-2003 02:48 PM
samba should work? chens_83 Linux - Networking 1 07-08-2002 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration