[Samba] Win9x login script drive mapping problem - addendum
Adam Manock
abmanock at earthlink.net
Wed May 29 11:02:04 GMT 2002
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
At 04:47 PM 5/29/2002 +0100, A.J.Dawson wrote:
>As an addendum to my original message (copied below), I have tried a couple of
>things and have found the following:
>
>Running a one line login script, eg
>
>net use * \\server\share
>
>with an echo command produces the following output:
>
>The syntax is incorrect.
>For help, type NET USE /? at the command prompt.
>
>Yet running the same script one the machine as soon after login as possible
>results in he drive being mapped correctly!
>
>Any ideas anyone?
>
>Regards
>
>Dr. Andy Dawson
>A.J.Dawson at Bradford.ac.uk
>
> Never attribute to malice that which is adequately explained by stupidity.
>
>---------- Forwarded message ----------
>Date: Wed, 29 May 2002 16:29:22 +0100 (BST)
>From: A.J.Dawson <ajdawson at bradford.ac.uk>
>To: samba at lists.samba.org
>Subject: Win9x login script drive mapping problem
>
>I am having problems with a Windows 98 machine that is connecting to our Linux
>Samba server. The problem is that I cannot get it to automatically map users
>drives when they log on. The login script *appears* to run okay, but the
>drives
>are simply not mapped.
>
>Under Windows NT/2K this has not been a problem.
>
>I have tried creating a one line login script along the lines of
>
>net use * \\server\share
>
>And even that doesnt work!
>
>I suspect that I am doing something daft, but if anyone could give me a few
>pointers, that would be most useful!
>
>My smb.conf is attached at the bottom of the e-mail
>
>Regards
>
>Dr. Andy Dawson
>A.J.Dawson at Bradford.ac.uk
>
> Never attribute to malice that which is adequately explained by stupidity.
>
>
># Start of smb.conf file
>
>[global]
> workgroup = SOMEGROUP
> server string = NT Server
> socket options = TCP_NODELAY
> interfaces = XXX.XXX.XXX.XXX/24
> local master = yes
> os level = 69
> domain master = yes
> preferred master = yes
> domain logons = yes
> wins server = XXX.XXX.XXX.XXX
> ;dns proxy = yes
> time server = yes
> map archive = yes
> browseable = yes
>
> # log file options - log by machine name, not > 200k /log
> log file = /usr/local/samba/log/log.%m
> max log size = 200
>
> # security considerations
> security = user
> encrypt passwords = yes
> # NOTE: we need to set this to no for Win95 clients < 4.00.950a
> hosts allow = XXX.XXX.XXX. 127.
> remote announce = XXX.XXX.XXX.255/SOMEGROUP
> guest account = nobody
> map to guest = Never
> guest ok = no
> domain admin group = @NT_adm
> add user script = /usr/sbin/useradd -c NT_machine -d /dev/null -g
> NT_machines -s /bin/false %m$
> bind interfaces only = yes
> unix password sync = yes
> passwd program = /usr/bin/passwd %u
>
> # printer defaults
> load printers = yes
> printing = BSD
> print command = /usr/bin/lpr -P%p -r %s
> lpq command = /usr/bin/lpq -P%p
> use client driver = yes
> disable spoolss = yes
> printer admin = @NT_adm
> printcap name = /etc/printcap
>
> # logon paths etc.
> logon script = scripts\%u.bat
>
> logon drive = p:
>
>[netlogon]
> comment = Network Logon Service
> path = /usr/local/samba/netlogon
> guest ok = no
> writable = no
> browseable = no
>
>[homes]
> comment = %u on %L
> volume = %u on %L
> writeable = yes
> valid users = @users
> nt acl support = no
> browseable = no
>
>[Guest]
> comment = Guest on %L
> volume = Guest on %L
> writeable = yes
> path = /home/guest
> valid users = @users
> force group = users
> force create mode = 770
> force directory mode = 770
> create mask = 770
> directory mask = 770
> browseable = yes
>
>[Netlon]
> comment = Netlon on %L
> volume = Netlon on %L
> writable = yes
> path = /home/netlon
> valid users = @netlon
> force group = netlon
> force create mode = 770
> force directory mode = 770
> create mask = 770
> directory mask = 770
> browseable = no
>
>#### Printers ####
>
>[Laserjet_6MP]
> comment = Laserjet_6MP on %L
> printable = yes
> path = /var/spool/lpd/ircps02.irc.brad.ac.uk-lp-lj_6mp
> printer = lj_6mp
> browseable = yes
> read only = yes
> valid users = @users
>
># End of smb.conf
>
>
>
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list