LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-16-2004, 10:45 AM   #1
HiroMasaki
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11

Rep: Reputation: 0
Question Netlogon issues > Samba 3.02a w/ Win98


An odd problem, and I'm not sure if it's a problem on the server side or the Windows side....

Created "%U".bat logon scripts in Samba as follows:

"%U".bat:
net use * /delete
net use F: \\server\username
net use P: \\server\programs
....etc.

Logged in from the workstation.

The script runs (Closes before I can read it) and gives no error messages.

The old network drives are still there except for F:, which no longer exists....

Oops. Change "Logon and Reconnect network drives" to "Quick Logon" under Client for Microsoft Networks. Delete all shares on the workstation. Re-write the batch file to change the UNIX carriage returns to DOS carriage returns. (Heh... Stupid DOS...)

Reboot.

Script runs.
No drives mapped.

Add "pause" to the end of the Batch, reboot

Batch runs, no pause, no drives mapped....

Run batch file from desktop.

Batch runs, drives are mapped.

I'm thinking the logon batch has been cached with the bad carriage returns, but I can't figure out where. Any ideas on whether that's the problem, or something else? I also thought maybe the batch is running before windows runs through its persistent connections, and Win98, being Win98, runs a "NET USE * /DELETE" first.
 
Old 04-16-2004, 05:14 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Windows doesn't cache scripts, but it does cache logon credentials - it's worth running a find in C:\Windows for *.pwl files and deleting those.
 
Old 04-19-2004, 07:37 AM   #3
HiroMasaki
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11

Original Poster
Rep: Reputation: 0
No go, but turning on extd_audit got me the following:

vfs_extd_audit: open CONFIG.POL failed: No such file or directory

Now, I was thinking about doing machine-specific Policy files through the logon scripts later, but why is it looking for it now, yet not looking for "%U.bat"?
 
Old 04-19-2004, 09:05 AM   #4
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
try this...

Code:
net use * /delete /persistant:yes
net use F: \\server\username
net use P: \\server\programs
 
Old 04-19-2004, 03:01 PM   #5
HiroMasaki
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11

Original Poster
Rep: Reputation: 0
If I'm not mistaken, /persistant is a Windows 2000 flag, and these clients are Win 98.

Also, it seems like the script is not running in the first place, as it neither attempts to access that file according to extd_audit, nor does adding "Pause" into the .bat file seem to have any effect.
 
Old 04-19-2004, 04:21 PM   #6
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Quote:
Originally posted by HiroMasaki
If I'm not mistaken, /persistant is a Windows 2000 flag, and these clients are Win 98.

Also, it seems like the script is not running in the first place, as it neither attempts to access that file according to extd_audit, nor does adding "Pause" into the .bat file seem to have any effect.
it might be a windows 2k flag.. im not exactly sure...

Another thing to check is... did you make the batch file on windows or in linux???

If you made it in linux.. run this command on the file(s)...

unix2pc username.bat

that would take care of the carriage returns your think that might be the problem.

EDIT: If that doesnt work let me know... We can look into further configuration issues

Last edited by trey85stang; 04-19-2004 at 04:22 PM.
 
Old 04-26-2004, 11:55 AM   #7
HiroMasaki
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11

Original Poster
Rep: Reputation: 0
Made them in Linux, realized my mistake, re-created them in Notepad from scratch.

I'm still wondering if the absense of a config.pol file is causing the "netlogon" script to error out... Perhaps I should go ahead and make a generic policy file and put it on there to see if that fixes the problem.


EDIT:

As I posted before, it's looking for a config.pol file, but doesn't actually attempt to access the .bat file. At this point it looks like either a Samba configuration error, or a Windows configuration error.

Last edited by HiroMasaki; 04-26-2004 at 01:06 PM.
 
Old 05-11-2004, 05:47 AM   #8
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
Got exactly the same prob.
The log file from samba shows nothing, so I think is a windows problem.
The bat file work fine from windows making netlogon browseable.
But windows just do not execute at the start of session.
Please help
 
Old 05-11-2004, 07:53 AM   #9
HiroMasaki
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11

Original Poster
Rep: Reputation: 0
Okay... Finally got some more information.

Logged in on a different system. This one has just enough lag that I can read what's going on.

>NET USE * /DELETE
Cannot Find Batch File

(Maps drives as usual)

So, my guess at this point is that the NET USE command is actually disconnecting the \\server\NETLOGON connection. Windows didn't cache the .bat file, so it errors out and just loads up the drives that were mapped manually previously. (I figure to fix that half, just un-map the drives.)

So, any suggestions? My current scripts look like:

NET USE * /DELETE /YES
NET USE F: \\server\share /YES
...etc.

I was thinking maybe something like:

del c:\username.bat
copy \\server\netlogon\scripts\username.bat c:\
c:\username.bat
 
Old 05-11-2004, 02:03 PM   #10
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
ok, I think I know:

Samba server has to be a PDC, make the changes to the client like these link shows (see the end, windows client arranges):

http://linuxfocus.org/English/March2...ticle177.shtml

Tomorrow I'll try it and will tell.
Good Luck.
 
Old 05-11-2004, 02:17 PM   #11
HiroMasaki
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11

Original Poster
Rep: Reputation: 0
Samba is the PDC, and my systems are already set up that way. The only difference is that I am not using system policy files. (No need at this exact moment. Maybe later.)
 
Old 05-12-2004, 02:35 PM   #12
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
Hi, now for me, without config.pol and the changes in smb.conf to be a PDC the logon scripts are working fine.

The clients are w98SE joined to the domain.

But now (always there is a 'but') I've changed the interfaces where samba is listening and got a problem of local master browser:

nmbd/nmbd_nameregister.c:register_name_response(109)
register_name_response: server at IP 172.26.0.2 rejected our name
registration of ADMINISTRACION with error code 6.

172.26.0.2 is a w98 pc who do not work very well cos do not reply to ping's and can't browse its files.

And can't be local master browser, as a result you do not see it in Net Neighbourhood but can access it as \\name_samba_server

Good Luck
 
Old 05-12-2004, 02:47 PM   #13
HiroMasaki
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: Debian Woody @ Work, Sarge @ Home
Posts: 11

Original Poster
Rep: Reputation: 0
The easiest way to get around that is to setup Samba as a WINS Server.

WINS SUPPORT = YES

Just make sure that the IP of the Samba Server is in your dhcpd.conf, or, if you're using static IPs, in your TCP/IP setup. Master Browser is now irrelevant.

Also, if that Win98 system isn't responding to pings when you use the IP address, I would look into possibly a bad network cable or bad NIC.
 
Old 05-12-2004, 03:45 PM   #14
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
Thanks, tomorrow I will try the wins support (option netbios-name-servers ip_samba_server in dhcpd.conf, I never used it), but the samba server have been working in another subnet without broadcast problems, all boxes were visible.

I think this little prob of mine is because the crappy w98 is not working well in 172.26.0.2, in this pc you can ping any boxes or browse their files across the network but others can not do the same with it -- do not response to ping's or not let u browse its files--. It surfs the web without problem, and so, it can talk very well with the router. So I think it's not a nic problem, it's a smb-cifs windowze problem.

And what about your logon scripts prob?
Have u tried another boxes w98? Have you added them to the domain?
me its working with samba-server-2.2.8a

Regards
 
Old 05-13-2004, 04:53 AM   #15
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
HI I have put wins support = yes in smb.conf
rearrange tcp-ip settings to add the wins server in clients

Still getting this in nmbd.log:

[2004/05/13 11:52:29, 0] nmbd/nmbd_nameregister.c:register_name_response(109)
register_name_response: server at IP 172.26.0.2 rejected our name registration of ADMINISTRACION<1d> with error code 6.
[2004/05/13 11:52:29, 0] nmbd/nmbd_become_lmb.c:become_local_master_fail2(425)
become_local_master_fail2: failed to register name ADMINISTRACION<1d> on subnet 172.26.0.101. Failed to become a local master browser.
[2004/05/13 11:52:29, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(290)
standard_fail_register: Failed to register/refresh name ADMINISTRACION<1d> on subnet 172.26.0.101

The samba server is not seen in nethood by clients w98

but they could access it like \\ip_samba_server

ping 172.26.0.2 give no response
But the other clients w98 can access it in nethood (something get better)

Some ideas Please.
 
  


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
logon issues: win98 - firewall - samba MichaelP Linux - Security 7 03-10-2005 04:29 PM
Samba Netlogon from win98-client lars12 Linux - Networking 0 07-21-2004 07:41 AM
Samba Netlogon - Driving me mad!!! ndprichardson Linux - Networking 12 10-25-2003 02:38 AM
My samba netlogon script doesn't execute colpaarm Linux - Software 1 07-25-2003 09:12 AM
Issues: NFS and Samba, XPh & Win98 to Redhat8.0 mutantjazz Linux - Networking 8 12-30-2002 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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