Click to See Complete Forum and Search --> : samba share and windows


beakerman
07-18-2005, 04:04 PM
Okay kinda baffled here. I installed Gentoo and emerged the samba package and have configured via their add a Samba server to an AD domain. I can see the users,groups and auth as them. Also I can ping internet address and servers on the internal LAN. The mystery comes when I go to look at my shares. It says that the location can't be found. I looked at the DNS on my W2K server and see I have no DNS for my server. Also checked the /var/log/samba and see no connection errors. I am sure this is DNS related in fact I can connect to the IP address directly. I think it may have something to do with my host file but not sure at this point....

Host file is

127.0.0.1 PDFSERVER.example.org localhost
10.255.255.201 adserver.example.org adserver

paj12
07-18-2005, 04:54 PM
Are you running raw SMB over TCP/IP? If this is the case, then you do indeed need a DNS server to do name resolution. The more common case, however, is Netbios. This does name resolution over TCP port 139 which is commonly blocked by firewalls. I would check the firewall first.

EDIT: If you need to, you could set up an lmhosts (http://groups.northwestern.edu/exec/htmldocs/lmhosts.5.html) file. This is seperate from the hosts file, which pertains specifically to DNS.

beakerman
07-18-2005, 05:18 PM
My W2K box is a dns server and before it would show an entry for the linux box I do have the resolov.conf file setup with my nameserver in it. I guess my real problem is why isn't my linux box getting it's address published in DNS on my W2K server

paj12
07-18-2005, 10:18 PM
You could try setting "dns proxy = yes" in you smb.conf. This will cause samba to do name lookups on DNS when they fail on NetBIOS. If you sure you have no need for it, you could also set "disable netbios = yes".

beakerman
07-19-2005, 09:47 AM
It isn't my linux box having the problem its the Windows box. I tried modifying my dns proxy setting but that didn't help. What I am noticing is that the IP I have assigned to my Linux box isn't showing up in my W2K DNS server(oh this is also a W2K domain server) this is why it can't figure out how to get to my linux box. is there some sort of logging I can put on to see why it isn't publishing my IP also since I set this box as static would that be why ??

--update Okay I found out that its because I have static however when I switch to dhcp I get an error when booting that says /sbin/dhcpd no such file or directory

Megahurts
07-19-2005, 11:51 AM
You need to configure your W2K DNS settings with a static mapping for the samba box.

Launch the DNS MMC snapin - Start, Admin tool, DNS

Expand forward lookup zones, then look the domain the smb box should be in.
Right click in the righthand pane and select new host.
Enter the DNS name and IP address of the SMB box
Stop/Start DNS services

beakerman
07-19-2005, 12:37 PM
adding static mapping does correct my issue thanks. Question if I decide I would rahter use DHCP is there a trick as I tried but got a /sbin/dhcpd file not found and indeed it doesn't exist. Do I need to rebuild or what ??

Megahurts
07-19-2005, 01:27 PM
From my limited linux knowledge I'd say that dhcpd is missing from your system, I've not experimented with Gentoo but you may need to emerge dhcpd

cybertron
07-19-2005, 01:39 PM
I'm guessing that's actually dhcpcd and Megahurts is right that you can emerge it. Just "emerge dhcpcd" and you should be on your way.

beakerman
07-19-2005, 02:00 PM
Thanks I did that before must not have had something right :) mayhaps you have to rc-update del the net.eth0 first and readd after you change it ?? It is running beautiful now :)

beakerman
07-19-2005, 02:21 PM
Also suggested to dynamically update my dns record to my W2K server do I need to emerge another tool or is there an easier config on W2K

beakerman
07-19-2005, 05:24 PM
okay i seem to have that issue fixed however now my logins aren't working for samba. I checked the logs and found a Failed to verify incoming Ticket