LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2005, 11:27 AM   #1
GiX
LQ Newbie
 
Registered: Mar 2005
Location: South Africa
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
Samba - can't get her to dance!!!


Just a simple quick one...

I'm running a 2003 server as a DHCP DC and active directory.
I'm sharing a folder on one of my XP systems that is part of the domain.
My Fedora box is set to fetch it's vitals via DHCP, which it does...I think

ifconfig indicates that it is receiving it's ip from my server.

when mounting the share using the following command I get the error:
command: smbmount //myxpsystem/dl /mnt/shares -o username=myname
error:connection to myxpsystem failed
SMB connection failed

but when I use the IP, it works fine...
smbmount //192.168.161.6/shares /mnt/shares -o username=myname
passwd:

My question is this, shouldn't the Linux system be able to resolve the computername to the IP as my 2003 DC is the DNS server...I've even configured the linux box manually with all ip's...still no change.

Also, what command can I use to check the current DNS server address that the linux box is using, as ifconfig only gives me the ip and subnet?

thanks from an appreciative newbie
 
Old 04-09-2005, 11:35 AM   #2
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
in /etc/samba/lmhosts add:

192.168.161.6 myxpsystem
 
Old 04-09-2005, 11:36 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you want to use the name then make sure that the nmbd server is running.

The dns servers are set in /etc/resolv.conf.
 
Old 04-09-2005, 11:48 AM   #4
GiX
LQ Newbie
 
Registered: Mar 2005
Location: South Africa
Distribution: Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks zeos, by adding the ip to lmhosts worked

considering that I'm running DHCP, that system will not always have the same IP, how do I get around that...?

Yes nmbd is running, it starts up with smbd...
 
Old 04-09-2005, 01:22 PM   #5
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
I'm wholly unfamiliar with win2k3, but you'll probably need to install the wins server on that box (if it's not already) and point samba at it to get it's netbios names (though hopefully someone who's familiar with windows can chime in, I generally set everything up exactly opposite, with samba being the PDC )

So, if you've got a wins server up and running....edit your smb.conf, under [global] add "wins server = ip.of.server", you may want to also add (in the same section) "name resolve order = wins bcast hosts" and restart samba. Again, this is a guess on my part ....I'm used to doing everything with samba running the show (wins/smb)
 
Old 04-09-2005, 02:16 PM   #6
GiX
LQ Newbie
 
Registered: Mar 2005
Location: South Africa
Distribution: Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks, but it seems to have solved itself?

I set everything on the linux box back to DHCP and it now seems to resolve the ip's without the lmhosts specified...mmm

but thanks for your time, I learned something new...
 
  


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
The dance of joy! Seventh Debian 1 08-13-2005 10:35 AM
is microsoft can dance with samba? ftansari Linux - Networking 12 02-16-2005 08:45 PM
Penguin Dance floppywhopper General 0 11-12-2004 06:45 PM
NEWBIE Dance!!!!! michaelbhahn Fedora 0 10-01-2004 02:59 AM
Can' Dance with Samba using PDC phar1944 Linux - Networking 2 06-19-2002 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:53 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