All, As some of have no doubt found out, scripting is subtly different on 95/98 machines and NT machines. I have a logon script called by: logon script = xxxx\main.bat %G %U that works great for NT boxen. However it does absolutely nothing, no execution of main.bat at all for a W98 client. If I remove the parameters so it is: logon script = xxxx\main.bat it executes on the W98 box, obviously not correctly for any commands requiring the parameters. What this is used for is a generic logon script for everyone, modified with special mounts etc. by group and user if defined. Works great with NT. Not so good with W98 My questions is, does anyone know how to pass parameters for a logon script for W95/98 box. Thanks, -- Paul Espinosa
This is how I do it. I come from supporting Novell servers and I needed a way to nest groups and various permissions. It's not pretty, but it works. This could be a pain if you are dealing with lots of users. [global] logon script = %U.bat (user's name).bat - @ECHO OFF SET USERNAME=User SET STAFF=YES SET ADMIN=NO SET LOCALPR=NO @CALL \\Server\netlogon\net-log.bat net-log.bat - @ECHO OFF REM SET USERNAME=Name REM SET STAFF=YES REM SET ADMIN=NO REM SET LOCALPR=NO ECHO Welcome %USERNAME%. NET USE * /DEL /YES NET TIME \\Server /SET /YES ECHO Are you Admin? IF %ADMIN% == YES GOTO Admin GOTO NotAdmin :Admin NET USE F: \\Server\netlogon :NotAdmin ECHO Mapping home directory NET USE G: \\Server\Public NET USE H: \\Server\Home NET USE K: \\Server\Prgs NET USE S: \\Server\CDROM NET USE Z: \\Server\ZIP :Printers ECHO Mapping network printers IF %LOCALPR% == YES GOTO NotLocal NET USE LPT2: \\Server\HP990 GOTO End :NotLocal NET USE LPT1: \\Server\HP990 :End I hope this helps. Paul Espinosa (samba@cynnyr.org) wrote*:> >All, > >As some of have no doubt found out, scripting is subtly different on 95/98 >machines and NT machines. I have a logon script called by: > > logon script = xxxx\main.bat %G %U > >that works great for NT boxen. However it does absolutely nothing, no >execution of main.bat at all for a W98 client. If I remove the parameters >so it is: > > logon script = xxxx\main.bat > >it executes on the W98 box, obviously not correctly for any commands >requiring the parameters. > >What this is used for is a generic logon script for everyone, modified >with special mounts etc. by group and user if defined. > >Works great with NT. Not so good with W98 > >My questions is, does anyone know how to pass parameters for a logon >script for W95/98 box. > >Thanks, > > >-- Bob Crandell Assured Computing When you need to be sure. Cell 541-914-3985 FAX 240-371-7237 bob@assuredcomp.com www.assuredcomp.com Eugene, Or. 97402
Has anyone tried using Kixtart from a Samba PDC? http://www.kixtart.org/ Brett -----Original Message----- From: Paul Espinosa [mailto:pespinosa@sunflowerbroadband.com] Sent: Friday, May 31, 2002 3:37 PM To: samba@lists.samba.org Subject: Re: [Samba] Logon scripting for W95/98 Unfortunately not, That's what I don't want to do, is to create individual .bat files for 200+ users. I can get that to work fine. Just be a pain. And I may have to. I may just make a perl script to create the .bat files from the passwd file... Thanks though, .----[ Bob Crandell wrote on Fri, 31 May 2002 20:16:54 +0000 ]---- | | |This is how I do it. I come from supporting Novell servers and I |needed a way to nest groups and various permissions. It's not pretty, |but it works. This could be a pain if you are dealing with lots of |users. | |[global] |logon script = %U.bat | <SNIP> --Paul Espinosa -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Reasonably Related Threads
- Cannot share folders access denid PDC+LDAP.
- W95/98 connect to any SMB share as another user? (SAMBA dige
- Cannot share folders access denid PDC+LDAP.
- Samba and W95/98/NT clients - dropping connections
- How to get Win 3.x, NT, W95 and W98 to all talk to Samba server