[Samba] Re: Win9x login script problem - solved

A.J.Dawson A.J.Dawson at Bradford.ac.uk
Thu May 30 07:02:04 GMT 2002

Many thanks to everyone who replied to me with possible solutions to the
problem I was having with drive mappings from login scripts under Windows

Adam Manock hit the nail on the head with his comments (see below) - it
turned out to be exactly this.

I was using Notepad to edit the login script, then using SSH to transfer
the script to the server.  SSH was 'helpfully' converting CR/LF's to LF's
for me during the transfer.  Of course, when I transferred the file back
again to the local machine to look at it, SSH was converting the LF's back
to CR/LF's so it looked to me as though there was no problem!

Opening the script directly from a mapped drive showed the problem
straight away.


Dr. Andy Dawson
A.J.Dawson at Bradford.ac.uk

 Never attribute to malice that which is adequately explained by stupidity.

> Message: 11
> Date: Wed, 29 May 2002 13:57:49 -0400
> To: samba at lists.samba.org
> From: Adam Manock <abmanock at earthlink.net>
> Subject: Re: [Samba] Win9x login script drive mapping problem - addendum
> Try net use f: \\server\netlogon
> notepad f:\scripts\someuser.bat
> Do you have CRLF line endings of just LF?
> If I recall correctly, NT / 2000 will handle login scripts with bare LFs,
> and 9x will not.
> Adam

More information about the samba mailing list