One more thing I forgot to mention. The chapter calls for editing /etc/resolv.conf, but in my case it won't stay edited--it keeps getting set back to an original form (for searching my ISP) on every reboot. Thanks again. Eric Hines -------- Original Message -------- Subject: Samba-3 By Ex Chapt 3 Date: Tue, 05 Jul 2005 17:47:09 -0500 From: Eric Hines <eehines@comcast.net> To: Samba <samba@lists.samba.org> I guess I'm ate up with dumb because I'm having a great deal of difficulty with this chapter. I'm running Samba v 3.0.14a on an FC3 machine. I've got two basic problems: one centers on my DNS set up and the other is an authenticated logon problem. With /etc/nsswitch.conf set to "hosts: dns," I cannot ping my samba server--"Host not found." Nor does <host lserver1.test.biz> (which appears in my /etc/hosts file) resolve the name (incidentally, "host -f ..." just tells me the f is an illegal option). WINS seems to resolve OK (at least the test for that in the chapter passes). I've checked my files several times, and I can find no error in them. The other problem is running smbclient //lserver1/accounts -U ehines. I'm invited to give the password, so that part is OK, but when I do, I just get an NT_STATUS_LOGON_FAILURE message. ehines is the owner of accounts and a member of the group that owns accounts. I think this goes back to my logon file in /scripts (per the smb.conf set up), but I'm clueless as to what should be in that file. That file currently has the following contents: net time \\lserver1 /set /yes net use h: /home net use p: \\lserver1\accounts Any help on these two would be greatly appreciated. Eric Hines -- He can compress the most words into the smallest ideas of any man I ever met. - Abraham Lincoln -- He can compress the most words into the smallest ideas of any man I ever met. - Abraham Lincoln
Eric Hines wrote:> One more thing I forgot to mention. The chapter calls for editing > /etc/resolv.conf, but in my case it won't stay edited--it keeps > getting set back to an original form (for searching my ISP) on every > reboot. >Use the GUI tools if you don't want to go hunting around for the config files that control everything. That is assuming that there is such a tool that deals with your resolve order. I wouldn't know myself, I have chosen Debeian for it's usually straightforward layout.> Thanks again. > > Eric Hines > > -------- Original Message -------- > Subject: Samba-3 By Ex Chapt 3 > Date: Tue, 05 Jul 2005 17:47:09 -0500 > From: Eric Hines <eehines@comcast.net> > To: Samba <samba@lists.samba.org> > > > > I guess I'm ate up with dumb because I'm having a great deal of > difficulty with this chapter. > > I'm running Samba v 3.0.14a on an FC3 machine. I've got two basic > problems: one centers on my DNS set up and the other is an > authenticated logon problem. With /etc/nsswitch.conf set to "hosts: > dns," I cannot ping my samba server--"Host not found."There shouldn't be any comma in there it should be : hosts: files dns wins Where are you pinging from? From your windows workstation? From the server?> Nor does <host > lserver1.test.biz> (which appears in my /etc/hosts file) resolve the > name (incidentally, "host -f ..." just tells me the f is an illegal > option). WINS seems to resolve OK (at least the test for that in the > chapter passes). I've checked my files several times, and I can find > no error in them. >For what is below, are you doing this from your test server as well?> The other problem is running smbclient //lserver1/accounts -U ehines. > I'm invited to give the password, so that part is OK, but when I do, > I just get an NT_STATUS_LOGON_FAILURE message. ehines is the owner > of accounts and a member of the group that owns accounts. I think > this goes back to my logon file in /scripts (per the smb.conf set > up), but I'm clueless as to what should be in that file. That file > currently has the following contents: > > net time \\lserver1 /set /yes > net use h: /home > net use p: \\lserver1\accounts > > > Any help on these two would be greatly appreciated.There was a thread titled logon.bat that started a bit before this one. Have a look at that for example logon script settings. Regards Geoff Scott
Are you using dhcp to get an IP address on that server? Every time dhcpcd gets an IP address it overwrites the resolv.conf. So I think that's why it's changing every time you reboot. dhcpcd can be run with the -R option to prevent it from overwriting resolv.conf (check out the dhcpcd man page). I'm not sure where you'd specify that as i don't use FC. But it's probably easier to just give that machine a static IP. Chris Eric Hines wrote:> One more thing I forgot to mention. The chapter calls for editing > /etc/resolv.conf, but in my case it won't stay edited--it keeps > getting set back to an original form (for searching my ISP) on every > reboot. > > Thanks again. > > Eric Hines > > -------- Original Message -------- > Subject: Samba-3 By Ex Chapt 3 > Date: Tue, 05 Jul 2005 17:47:09 -0500 > From: Eric Hines <eehines@comcast.net> > To: Samba <samba@lists.samba.org> > > > > I guess I'm ate up with dumb because I'm having a great deal of > difficulty with this chapter. > > I'm running Samba v 3.0.14a on an FC3 machine. I've got two basic > problems: one centers on my DNS set up and the other is an > authenticated logon problem. With /etc/nsswitch.conf set to "hosts: > dns," I cannot ping my samba server--"Host not found." Nor does <host > lserver1.test.biz> (which appears in my /etc/hosts file) resolve the > name (incidentally, "host -f ..." just tells me the f is an illegal > option). WINS seems to resolve OK (at least the test for that in the > chapter passes). I've checked my files several times, and I can find > no error in them. > The other problem is running smbclient //lserver1/accounts -U ehines. > I'm invited to give the password, so that part is OK, but when I do, I > just get an NT_STATUS_LOGON_FAILURE message. ehines is the owner of > accounts and a member of the group that owns accounts. I think this > goes back to my logon file in /scripts (per the smb.conf set up), but > I'm clueless as to what should be in that file. That file currently > has the following contents: > > net time \\lserver1 /set /yes > net use h: /home > net use p: \\lserver1\accounts > > > Any help on these two would be greatly appreciated. > > Eric Hines >
Geoff Scott wrote:>Eric Hines wrote: > > >>Geoff, >> >> > >What do your logs say about NT_STATUS_LOGON_FAILURE for the stuff below? > >What type of sam are you running? Ldapsam / tdbsam ? > >It's set for tdbsam. I've not got that set up right, though, according to the smbd log. I've frankly walked away from this problem, though, until I get DNS resolution running. My WINS does seem to be, tested with nsswitch set solely to wins. Now it's set back to hosts: files dns wins. I've been in log.nmbd, log.smbd, log.winbindd, and smbd. Smbd yells about "Unable to open TDB rid database!" There's a pretty clear hint; I just haven't had time to pursue it.>>>There was a thread titled logon.bat that started a bit before this >>>one. Have a look at that for example logon script settings. >>> >>I'm studying that, too. That may help with my logon problem, but it >>doesn't address my DNS problem. >> >>When I run the logon.bat file from my Win2k box, I get the following >>in a DOS window: >> >> net time \\lserver1 /set /yes >> System error 5 has occurred. >> >I'd guess that would work if you had wins set in your nsswitch > >It is, though: hosts: files dns wins>> Access is denied. >> >> net use h: /home >> The user's home directory has not been specified. >> >> >Well that's just clearly wrong. As John said in that post I mentioned: >net use o: %LOGONSERVER%\sharename >Or >net use o: \\lserver1\sharename > >But none of those is going to work unles name resolution is working. >Particularly wins for this example. > >Agree on both. I still need to study John's post, but I'm concentrating on getting DNS to work for now. WINS does seem to be working.>Regards Geoff Scott >Thanks Eric Hines -- He can compress the most words into the smallest ideas of any man I ever met. - Abraham Lincoln