Configuring Run-As Security

You can enable run-as security by editing the properties file for the 3DOrchestrate Distribution Server and making additional changes on each 3DOrchestrate Station.

All encryption key generation and management for the 3DOrchestrate run-as feature is automatic and requires no configuration. The system administrator needs only to enable the feature and specify the security domains for stations to authenticate user credentials.

By default, all the stations use the same security domain (realm) to authenticate user credentials. You can change a stations security domain (realm) in the station property file (using the property fiper.security.ruas.domain) to enable a different realm for a given station. You can have different stations authenticate to different security domains, but each station can use only a single domain.

When the 3DOrchestrate Distribution Server and its stations use separate security domains, users must have a common username and password for all domains in which their job executes. It is impossible to authenticate a single job with multiple usernames and passwords.

This task shows you how to:

Enable Run-As Security in the 3DOrchestrate Distribution Server

  1. Edit the <server_install_dir>/config/SMAExeServer-xxxx.properties file in the 3DOrchestrate Distribution Server installation to set the following properties:

    fiper.security.runas.enabled=
    fiper.security.runas.domain=

  2. Set fiper.security.runas.enabled to true. Uncomment and activate the line by deleting the leading # character.
  3. If you want to authenticate users with a Windows Active Directory server, set the fiper.security.runas.domain property to the name of your Windows domain:

    fiper.security.runas.domain=windows-domain

    Uncomment and activate the line by deleting the leading # character.

    If run-as security is enabled, you can set this property to a Windows security domain name that the 3DOrchestrate Distribution Server uses to look up users and passwords. Unless a particular 3DOrchestrate Station is explicitly configured, all the Windows-based stations use this domain name. This setting is ignored on Linux.

  4. If you have installed the 3DOrchestrate Distribution Server on Linux and you are using LSF DRM mode or Open DRM, follow these additional steps:
    1. Log in to the 3DOrchestrate Distribution Server computer as root.
    2. Open a terminal/shell, and change the directory (cd) to the following directory:

      <server_install_dir>/config/

      In this directory, the deployment utility creates the file SMAExePlaunch.

      Note: The fiper.security.runas.impl specifies the type of authentication. The values are PLAUNCH, SU or SUDO. Default is PLAUNCH

    3. Execute the following commands:

      chown root SMAExePlaunch
      chmod 4510 SMAExePlaunch

      Setting permissions to 4510 on the SMAExePlaunch file equates to set-user-id, owner read/execute, group execute only, and no access for others.

    4. Locate the following file:

      /etc/pam.d/login

      Make a copy of this file and rename it fiper. Be sure that the contents of this copy are identical to the original file.

  5. Stop and restart the 3DOrchestrate Distribution Server application in the application server.
What's Next

By default, each 3DOrchestrate Station follows the run-as configuration of the 3DOrchestrate Distribution Server to which it is connected (as determined by the fiper.security.runas.enabled property in the SMAExeServer.properties file). You can use the Run-As property of a particular station to force it to run with run-as disabled even when the 3DOrchestrate Distribution Server has run-as enabled.

Configure Run-As Security on a Windows Station

By default, a station follows the run-as configuration of the 3DOrchestrate Distribution Server to which it is connected, but you can override that setting in the Run-As property of each station.

To configure a Windows-based station to use the run-as security feature, follow the steps below.

  1. Do one of the following:
    • If you plan to use the same security domain as the 3DOrchestrate Distribution Server, skip to step 3.
    • If you plan to use a security domain that is different from the 3DOrchestrate Distribution Server, continue with step 2.
  2. If you want to authenticate users with a Windows Active Directory server, edit the Domain property of the station to specify the name of the Windows domain you want to use.

    The 3DOrchestrate Station now uses this domain to authenticate users' credentials instead of the domain specified in the SMAExeServer-xxxx.properties file of the 3DOrchestrate Distribution Server.

  3. Grant Read, Write, Execute, Create folders, and Create files access (or full access) on the 3DOrchestrate Station temporary directory to all users that might submit jobs. This directory is specified in the Temp Directory property of the station configuration (or the fiper.station.tempdir property in the properties file).

    The steps necessary for granting this access to the station temporary directory differ slightly across Windows operating systems and might require special permissions.

  4. Locate the system user rights as described below:
    • Windows Server 2016: Navigate to Start > Control Panel > System and Security > Administrative Tools > Local Security Policy; and from the Local Security Policy dialog box, access the User Rights Assignment settings under the Local Policies option.

    • Windows 11: Open the Start menu, search for secpol.msc, and select Local Security Policy. From the Local Security Policy dialog box, access the User Rights Assignment settings under the Local Policies option.

  5. To edit the User Account Control (UAC)
    1. From the Windows Start menu, select Control Panel.
    2. From the Control Panel, select User Accounts, and select Change User Account Control settings.
    3. Move the slider bar to Never notify.
    4. Click OK.
    5. Close the Control Panel.
  6. Add the user account that will run the station to the local Administrators group and grant that user the privilege Replace a process level token in the Local Security Policy dialog box.
  7. Log out and log back on to the station computer. This causes the operating system to recognize the privilege changes.
  8. Add the following properties to the SMAExeStation.properties file. You can vary the values according to the load.

    • fiper.station.substation.starttime=300000
    • fiper.substation.launchtimeout=300000
    • fiper.substation.keepalive.interval.ms=120000
    • fiper.security.substation.cache.size=<twice the number of expected users> + 5

  9. Save and close the SMAExeStation.properties file.

Configure Run-As Security on a Linux Station (Built-in DRM Mode Only)

By default, a station follows the run-as configuration of the 3DOrchestrate Distribution Server to which it is connected.

These configurations are required only if the DRM mode is built-in (the default). If the DRM mode is LSF or Open DRM, you must make similar configurations on the Linux-based 3DOrchestrate Distribution Server, as described above in Enable Run-As Security in the 3DOrchestrate Distribution Server.

To configure a Linux-based station to use the run-as security feature, you must do the following:

  1. Change permissions on the SMAExePlaunch file.
  2. Specify a temporary directory in the station properties.
  3. Add a new file to the system's /etc directory.

  1. If you want to authenticate users with a Windows Active Directory server, edit the Domain property of the station to specify the Windows name of the Windows domain that you want to use.

    The 3DOrchestrate Station now uses this domain to authenticate users' credentials instead of the domain specified in the SMAExeServer-xxxx.properties file of the 3DOrchestrate Distribution Server.

  2. Log in to the 3DOrchestrate Station computer as root.
  3. Open a terminal/shell, and change the directory (cd) to the following:

    <station_install_dir>/config/

  4. Execute the following commands:

    chown root SMAExePlaunch
    chmod 4510 SMAExePlaunch

    Setting permissions to 4510 on the SMAExePlaunch file equates to set-user-id, owner read/execute, group execute only, and no access for others. This requires that all users who will start run-as stations must be in the same group, which is recommended for production environments.

  5. Specify a temporary directory in the Temp Directory property of the station configuration (or the fiper.station.tempdir property in the properties file).

    The temporary directory must be world-writable; for example, something similar to /var/tmp/ds-tmp-dir/. Set the permissions on the temporary directory so that it is fully accessible by any user with the following command:

    chmod 1777 <temp-directory>
    For example:
    chmod 1777 /var/tmp/thisdir

    This mode sets the sticky bit, which allows contents (such as files and subdirectories) to be removed only by the owner (or root).

  6. Locate the following file:

    /etc/pam.d/login

    Make a copy of this file and rename it fiper. Be sure that the contents of this copy are identical to the original file.

  7. Start (or restart) the 3DOrchestrate Station program.