Yeah, it is possible using only one logon script. But why not use 3?
Anyway, this is probably what you are looking for... Put this in the logon
script:
if "%USERNAME%" == "Sysadmin" goto _sysadmin_map
if "%USERNAME%" == "Deb" goto _sysadmin_map
if "%USERNAME%" == "Nichole" goto _Nichole_map
:_sysadmin_map
net use U: \\server\share
net use V: \\server\share2
net use W: \\server\share3
:_Nichole_map
net use U: \\server\share
net use V: \\server\share2
Jim
> -----Original Message-----
> From: samba-bounces+creole3=bellsouth.net@lists.samba.org
> [mailto:samba-bounces+creole3=bellsouth.net@lists.samba.org]On
> Behalf Of
> Kevin Smith
> Sent: Tuesday, March 25, 2003 9:19 AM
> To: Samba
> Subject: [Samba] SAMBA AND LOGON SCRIPTS.
>
>
> Is there a was in Logon script to figure out what user is
> logging on and
> only map those drives to those users?
> For instance I have 3 users Sysadmin, Deb, and Nicole, With
> Public, ~ , and
> Music share.
> What I want is Sysadmin gets access to all 3, Deb Gets access
> to all 3, and
> Nicole only gets access to Public and ~. And Id like to do
> this with only
> one logon script. I know, they are actually MS-DOS .bat
> files, but I have
> not found much info left on batch programming.
>
> TIA
> Kev
>
>
OutBound Mail Scanned by Mcafee Web Appliance.
-------------- next part --------------
OutBound Mail Scanned by Mcafee Web Appliance.