Specify multiple login scripts

Path

Computer Configuration > Policies > Centrify Settings > Mac OS X Settings > Scripts (Login/Logout) > Specify multiple login scripts

Description

Specify the names of one or more login scripts to execute when an AD or local user logs on. The scripts you specify run simultaneously in no particular order.

Before enabling this policy, you should create the scripts and copy them to the system volume (sysvol) on the domain controller. By default, the login scripts are stored in the system volume (SYSVOL) on the domain controller in the directory:

\\domain\SYSVOL\domain\Scripts
\scriptname1
\scriptname2
...

After enabling this policy, click Add and enter the following information:

  • Script: The name of the script and an optional path, which are relative to \\domain\SYSVOL\domain\scripts\.

    For example, if the domain name is ajax.org and you enter a script name of start.sh, the script that gets executed on the domain controller is:

    \\ajax.org\SYSVOL\ajax.org\Scripts\mlogin.sh

    You can specify additional relative directories in the path, if needed; for example, if you type sub\mlogin.sh, the file that gets executed is:

    \\ajax.org\SYSVOL\ajax.org\Scripts\sub\mlogin.sh
  • Parameters: An optional set of arguments to pass to the script. These arguments are interpreted the same way as in a UNIX shell; that is, space is a delimiter, and backslash is an escape character. You can also use $USER to represent the current user's name. For example:

    arg1 arg2 arg3 
    arg1 'a r g 2' arg3

Note:   Be certain authenticated users have permission to read these files so the scripts can run when they log in.

Once this group policy is enabled, it takes effect when users log out and log back in.