Specify login script (Deprecated)

(Deprecated) Enable this group policy to specify a script that runs automatically when a user logs in.

NOTE: This deprecated group policy use login hooks mechanism, which is a deprecated technology. It is recommended to use group policy "Specify multiple login scripts" instead.

The scripts should store in \\\SYSVOL\\scripts folder.

The script path should be relative path to \\\SYSVOL\\scripts folder.

Example:

setting the path to:
login.sh
will run the following script when a user logs in:
\\\SYSVOL\\scripts\login.sh

- Run with root user privileges:
By default, the login script will run as an Active Directory user. If 'Run with root user privileges' is checked, the login script will run with root privileges, allowing a user to do things that they normally don't have permission to do.

You can specify only one file as a login script.

Note:
This policy uses Mac OS X's login hook. If you already use login hook for your own purposes then, with Centrify Agent version 4.4 and earlier, your login hook will be replaced and will not run anymore. With Centrify Agent version 4.5 and later, your login hook will be copied to /var/centrifydc/scripts/additional/login and will run before the script specified in this policy.

On Mac OS X 10.6, login script cannot launch GUI applications, for example TextEdit.app. Please use "Enable login items" policy to launch these applications.

Supported on:

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\Mac\Scripts
Value NameEnableLoginScript
Value TypeREG_SZ
Enabled Value1
Disabled Value0

Login script:

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\Mac\Scripts
Value NameLoginScript
Value TypeREG_SZ
Default Value
Run with root user privileges
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\Mac\Scripts
Value NameLoginScriptRunAsRoot
Value TypeREG_DWORD
Default Value0
True Value1
False Value0

centrify_mac_settings.admx

Administrative Templates (Computers)

Administrative Templates (Users)