(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 \\
The script path should be relative path to \\
Example:
setting the path to:
login.sh
will run the following script when a user logs in:
\\
- 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.
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Centrify\CentrifyDC\Settings\Mac\Scripts |
Value Name | EnableLoginScript |
Value Type | REG_SZ |
Enabled Value | 1 |
Disabled Value | 0 |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Centrify\CentrifyDC\Settings\Mac\Scripts |
Value Name | LoginScript |
Value Type | REG_SZ |
Default Value |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Centrify\CentrifyDC\Settings\Mac\Scripts |
Value Name | LoginScriptRunAsRoot |
Value Type | REG_DWORD |
Default Value | 0 |
True Value | 1 |
False Value | 0 |