Hi, RH7.3, Samba 2.2.8a, Win2KSP4 clients... I was just wondering, I know I can have a logon script based on a machine name, on a group, a username, etc., but am I able to actually have a combination of the above? I would like to have a standard group logon script (which I currently do have), but I would also like an extra script to run if they log on to particular machines under my domain... Suggestions? Max.
On Thu, 18 Sep 2003, Max Harvey wrote:> Hi, > > RH7.3, Samba 2.2.8a, Win2KSP4 clients... > > > I was just wondering, > > I know I can have a logon script based on a machine name, on a group, a > username, etc., but am I able to actually have a combination of the > above? > > I would like to have a standard group logon script (which I currently do > have), but I would also like an extra script to run if they log on to > particular machines under my domain... Suggestions?As is documented in the Samba-HOWTO-Collection.pdf in the Chapter on Advanced Network Management, you can dynamically create network logon scripts and have the client execute them. See the HOWTO for details. Please do refer to the Samba-3.0.0 HOWTO Collection, it is a little more up to date than the Samba-2.2.8 one. - John T. -- John H Terpstra Email: jht@samba.org
You don't have to use a batch file for a logon script. You can use a Visual Basic script instead. You can use "Select Case" to have it do different things for different users. "Max Harvey" <IT@smc.ac.nz> wrote in message news:001c01c37d70$77dac120$16e1508b@Andromeda...> Hi, > > RH7.3, Samba 2.2.8a, Win2KSP4 clients... > > > I was just wondering, > > I know I can have a logon script based on a machine name, on a group, a > username, etc., but am I able to actually have a combination of the > above? > > I would like to have a standard group logon script (which I currently do > have), but I would also like an extra script to run if they log on to > particular machines under my domain... Suggestions? > > Max. > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Stefan (metze) Metzmacher
2003-Sep-18 13:30 UTC
[Samba] Re: More than one logon script, can I have?
Max Harvey schrieb:> Hi, > > RH7.3, Samba 2.2.8a, Win2KSP4 clients... > > > I was just wondering, > > I know I can have a logon script based on a machine name, on a group, a > username, etc., but am I able to actually have a combination of the > above? > > I would like to have a standard group logon script (which I currently do > have), but I would also like an extra script to run if they log on to > particular machines under my domain... Suggestions? > > Max. >just let the main script call the other scripts maybe use ifmember.exe to check groups... (search google for ifmember.exe) @echo off @echo START default.bat IF %OS%==DOS GOTO DOSCLIENT GOTO NTCLIENT :NTCLIENT @SET NETLOGONPATH=\\SMB-1\NETLOGON\ @call %NETLOGONPATH%Groups\smb.bat GOTO END :DOSCLIENT ECHO DOSCLIENT GOTO END :END @echo END default.bat -- metze ------------------------------------------- Stefan (metze) Metzmacher <metze at metzemix.de>