FreeBSD mount_smbfs problem

kag

Golden Member
May 21, 2001
1,677
0
76
www.boloxe.com
I have a weird problem. To make a story short, when I use: mount_smbfs -N //STRIDER/docs /mnt/docs, it gives a timeout.

According to nsmb.conf:
[STRIDER:DRAGSTER]
password=$$xxxxxxxxxxxxxxxxxxx
workgroup=MYNET
addr=strider.example.com


And according to /etc/hosts, 192.168.0.2 strider.example.com

But when I use mount_smbfs -N -I 192.168.0.2 //STRIDER/docs /mnt/docs
(which should do the exact same thing), I get an authentification error.

The problem is that it was working fine for the last 6 months. My roommate can access this share from his computer, so it's not a firewall that was left enabled.

This guy had the same problem, but it doesn't seem to be answered. Do you have any clue on what's going on?
 

kag

Golden Member
May 21, 2001
1,677
0
76
www.boloxe.com
Well I checked every single file from /var/log that was marked as last modified today, and nothing at all. I don't know if it could be logged elsewhere?
 

kag

Golden Member
May 21, 2001
1,677
0
76
www.boloxe.com
I worked the problem down. It's not a SMB problem.
How come when I do a "smbutil lookup strider", it says "Got reponse from 192.168.0.2" (which is good) and then "IP address of strider: 192.168.152.1" ???
strider is specified as 192.168.0.2 in /etc/hosts ("ping strider" effectively pings 192.168.0.2)

This is where my problem is. If I would get 192.168.0.2 instead of 192.168.152.1, I'm sure it would work.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Grep everything in /etc (and /usr/local/etc if FreeBSD uses that abomination) for the strange IP address.