[Samba] Problem with logon script
Harry Rüter
harry_rueter at gmx.de
Thu May 23 05:40:03 GMT 2002
Hi,
Oliver Six wrote:
>
> Harry Rüter <harry_rueter at gmx.de> wrote on 23.05.2002 13:02:10:
>
> >
> >Hi,
> >
> >i'm having a little problem with the logon-script feature.
> >
> >I work with a Winxx-network with Win2k and Win98-Clients.
> >The fileserver is samba 2.2.4 on LINUX,Kernel 2.4.18.
> >
> >For debuging-purposes i wrote a pause command into the
> >logon-script.
> >
> >A realized that there is an error message (in german, i try
> >to translate) :
> >
> >-----------------------------------------------------------
> >The local device is already used
> >
> >System error 85 .
> >Help is available with the command NET HELPMSG 2250 .
> >-----------------------------------------------------------
> >
> >Here is the part from my script :
> >
> >------------------------------------------------------------------------
> >@SET SERVER=MYSERVER
> >
> >:Win2k
> >rem echo In Win2k
> >@NET TIME \\%Server% /SET /YES > nul
> >@net use u: \\%Server%\homepages > nul
> >@net use v: \\%Server%\homes > nul
> >@net use w: \\%Server%\fax > nul
> >@net use x: \\%Server%\data > nul
> >@if not "%USEROFCURRENTSERVICE%" == "Administrator" goto
> >win2kend
> >@net use y: \\%Server%\rootdir$ > nul
> >:win2kend
> >rem @net use /PERSISTENT:NO > nul
> >@net use z: /delete > nul
> >@goto end
> >-------------------------------------------------------------------------
> >
> >The client-OS on which the error occurs is Win2k.
> >
> >Windows seems to mount the drives itself befor the
> >logon script is started.
> >
> >How can i solute this problem ?
> >
> >
> >thanks Harry
> >
> >
> >By the way , the logon-script is generated with a
> >shell-script using the
> >root preexec statement.
> >
> >So i can parse each statevar like USEROFCURRENTSERVICE ( =
> >%u) to the logon-script.
> >This works and has nothing to do with the problem,
> >just an information for you ..
> >
> >--
> >To unsubscribe from this list go to the following URL and read the
> >instructions: http://lists.samba.org/mailman/listinfo/samba
>
> Hi Harry,
>
> AFAIK: windows maps drive y: or z: to the logon service to execute the logon
> script.
>
> Ciao Oliver
> --
I dont think so.
Here's an output which shows, that Windows doesn't have
to map it, as it could and (afaik) does it with the
following syntax ( \\SERVER\share ) :
---------------------snipp---------------------
D:\>dir \\486dx66\netlogon
Datenträger in Laufwerk \\486dx66\netlogon: ist netlogon
Datenträgernummer: 0F7C-24C4
Verzeichnis von \\486dx66\netlogon
23.05.2002 14:31 <DIR> .
05.04.2002 13:10 <DIR> ..
11.05.2002 16:17 194 logon.bat
23.05.2002 14:31 2.345 logonsmb.bat
14.05.2002 14:57 140 delme.bat
11.05.2002 16:17 194 logon.cmd
16.05.2002 10:51 3.470 netlogon.sh
09.05.2002 22:37 617 welcome.sh
23.05.2002 14:31 112 arc
11.05.2002 10:03 3.021 test.bat
07.04.2002 14:51 6.341 netlogon.sh.old
11.05.2002 11:58 661 bye.sh
22.05.2002 16:37 1.598 os_logon.bat
16.05.2002 10:57 2.366 logonsmb.cmd
12 Datei(en) 21.059 Bytes
2 Verzeichnis(se), 86.474.752 Bytes frei
D:\>
---------------------snipp---------------------
You see, no drive necessary.
Your answer wouldn't match the drives u,v,w too.
Hoping for an answer and thanks
Harry
More information about the samba
mailing list