LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-03-2005, 05:12 PM   #1
xstefanox
Member
 
Registered: Mar 2005
Location: São Paulo - Brazil
Distribution: Debian
Posts: 45

Rep: Reputation: 15
Angry Can't log into SAMBA at first time


Hey guys, how are you?

Well, I'm having some problems with SAMBA that are really pissing me off. Let me explain:

At first, we had a RH 9 server running. It always crashed and it was far away from update and since RH isn't releasing any more free updates, we've chosen to change it to Debian. I choose it because I'm pretty more used to it.

When we were zeroing the server, we setup it to run at 192.168.3.5 until we bring up all the services (SAMBA, NAMED, DHCP, NIS and NFS). We had a lot of problems during the process and a implementation that usually would take nothing more than 2 days is taking a week, just because SAMBA isn't tunned up.

Well, that especific problem is that when we changed the IP address to 192.168.3.2, the clients can't login at first, but when they try again, with the same user and password, all became and things work out. The error seems to be something related to users or passwords, because it pops up a message talking about it (I'm not at work right now, so I can't paste it).

The guy that works with me say it's something related to WINS, but my guess is that is something related to passwords and all that plain-encrypted-ntlm-ntlm2-and-blah-blah-blah stuff. I guess that because since the client finds out the server and receive an answer like that, it seems that there are connection after all.

I was looking for the answer in Google and all the search engines that I never heard of and I stiff have no answer. So... if anybody could help not losing my job, I would be happy.


Sorry about my lousy english, I'm brazilian.


Hugs and so on.
 
Old 11-04-2005, 03:54 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Are you having your users authenticating via Samba for workstation logins, or simply to access Windows shares / printers? Moving the IP address shouldn't make a difference so long as the relevant services (smbd, winbind, etc.) are restart accordingly. How are your clients becoming aware of the IP address change?
 
Old 01-16-2006, 04:41 AM   #3
xstefanox
Member
 
Registered: Mar 2005
Location: São Paulo - Brazil
Distribution: Debian
Posts: 45

Original Poster
Rep: Reputation: 15
I've managed to correct the problem deleting the content of the /var/lib/samba directory and restarting the service. The problem was that the wins.dat (The file that is responsible for NetBIOS name resolving) was pointing to an unknown host with the old IP address. So when it tries to log in, the request is sent to the old address. When the user tries again, the request is sent to the right address.

Thanks for the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't log in the second time Gyope Slackware - Installation 9 06-21-2005 06:18 AM
how to log into gnome twice at same time? PhenuxRizing Linux - General 6 09-12-2004 04:29 PM
Log reboot time? x5452 Linux - Software 2 03-30-2004 08:00 PM
how to get the time in the log ? cccc Programming 0 02-25-2004 05:58 PM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM


All times are GMT -5. The time now is 06:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration