Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: rgmhtt on March 22, 2009, 04:12:29 PM

Title: Support for user.bat logon files?
Post by: rgmhtt on March 22, 2009, 04:12:29 PM
This is the way I have done it on NT in the /import/scripts directory.

I believe Samba supports per user logon scripts, can sme be setup this way?  Or do I have to install the loginscript contrib and have a complex single netlogon.bat, listing every user?

And if there is no user.bat, the netlogon.bat hopefully is used....

Title: Re: Support for user.bat logon files?
Post by: Stefano on March 22, 2009, 05:20:38 PM
rgmhtt:
put your user.bat file into user's home dir then call it via netlogon.bat.. home directory is mounted as H:, so a line as
Code: [Select]
H:\user.bat
should work.

loginscript contrib can help you to create a logon script based on user/group/machine/client o.s.

ciao
Stefano
Title: Re: Support for user.bat logon files?
Post by: Craig Cabrey on March 22, 2009, 05:38:41 PM
loginscript contrib can help you to create a logon script based on user/group/machine/client o.s.

Stefano,

I do not see that in the wiki, is there a bug report for it?
Title: Re: Support for user.bat logon files?
Post by: Stefano on March 22, 2009, 07:12:02 PM
Hi Craig..

sincerely, I don't know :)

I remember all the "ifx" tag cases that you can find reading the example

Code: [Select]
@ECHO OFF
ECHO Welcome to the XYZ computer network
ECHO -----------------------------------
ECHO.

#ifg finance, receipting
REM Map financedata iBay for finance and receipting groups:
NET USE F: \\server\financedata
#endif

#ifu fred
REM Say hello to Fred
ECHO Hello Fred!
#endif

#ifm fast-pc, speedy, killer-p3
REM Map the IT printer for the above named computers:
NET USE LPT1: \\server\itprn
#endif

#ifa Win95, WinNT
REM Run a virus update check on the Windows NT and 9x PCs:
call \\server\utils\files\virus\update.bat

REM The available Architectures are:
REM   WinNT = Windows NT or 2000
REM   Win95 = Windows 95 or 98
REM   WfWg = Windows for Workgroups
#endif




is there a page in the wiki for this contrib? if yes I will update it.

Ciao
Stefano
Title: Re: Support for user.bat logon files?
Post by: rgmhtt on March 23, 2009, 01:18:04 AM
rgmhtt:
put your user.bat file into user's home dir then call it via netlogon.bat.. home directory is mounted as H:, so a line as
Code: [Select]
H:\user.bat
should work.

loginscript contrib can help you to create a logon script based on user/group/machine/client o.s.

Thanks, I will have to work with this.  Have to figure out how to set user.bat so that user cannot modify it...