Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-01-2002, 06:27 AM   #1
LQ Newbie
Registered: May 2002
Location: Bury, UK
Distribution: Mandrake
Posts: 7

Rep: Reputation: 0
Logon Scripts

Having a problem getting Win 95 to run a logon script on a Samba server. I have configured the server to run as a PDC (at last) and users can log in without any probs, but I cannot get the clients to run logon scripts.
I have created the netlogon share in /home and have placed a file named logon.bat in there.
The netlogon path is specified in smb.conf and I cant find any other probs. This is the netlogon section of the conf file

comment = Domain Netlogon Service
path = /home/netlogon
logon script = logon.bat
guest ok = no
writeable = no
browseable = no
write list = admin

The logon script consists of

net use h: \\server\homes\documents /yes
net use s: \\server\public /yes

but the content really is irrelevant as it is just not being executed.

Any help would be much appreciated, as I am a complete Linux newbie fumbling blindly through this (although learning very quickly).


Old 07-04-2002, 01:16 AM   #2
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
I don't think that windows will run anything you put in the netlogon directory, I think it looks for specific filenames in the netlogon share to run, I just pulled out one of my old MCSE books and it only mentions putting a config.pol file in the netlogon share and of course this file is used to change settings like forcing a win 9x box to log in so they can't hit cancel, and putting on a logon banner and fun things like that :-) I don't have any win 9x machines here to see if you can map a drive though the config.pol file or not.

Now this is not what you asked for really but if this is only for a couple of machines why not just put the batch file to map the drives in the systems's startup folder in the start menu then it would run it each time you log in. Just a thought, hopefully I have sent you in a positive direction.
Old 08-07-2002, 04:44 PM   #3
Rob Ellsworth
LQ Newbie
Registered: Aug 2002
Posts: 18

Rep: Reputation: 0

This looks like a problem I just resolved.

In my case the the problem was solved when I edited my logon.bat file in notepad and saved it to the correct directory in Linux. This provided dos style end of line (<cf><lf>)

Also make sure where your script says server you are using the netbios name in your smb.conf file.

Good Luck.


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
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 12:10 PM
Have scripts run when you logon BigChuckP Linux - Newbie 4 10-24-2005 07:41 PM
"logon" scripts Ateo Programming 3 09-20-2005 04:51 PM
samba logon scripts carnold Linux - Software 1 06-25-2005 08:47 AM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 12:56 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration