set_agent_mode options

The following table lists the set_agent_mode options:

Option

Description

Enable root mode

Enables the Agent to run jobs by any user, but no password is required. The Agent process is started under Root.

NOTE: The su OS command is used.

Enable non root mode

Enables the Agent to run jobs by any user, but a password is required. The Agent process is started under the Agent account.

NOTE: The BMC su command is used.

Enable sudo mode

Enables the Agent to run jobs by any user, but no password is required for the Agent account in the sudoers file. The Agent process is started under the Agent account.

NOTE: You must have Sudo version 1.7 or above

The user needs to be granted the appropriate Sudo permissions in the /etc/sudoers file.

NOTE:

  • ALL commands must be directed to all target job owner accounts
  • No Password must be added to Agent account in sudoers file
  • Entry “Defaults requiretty” should be remarked in the /etc/sudoers file

    EXAMPLE: The Agent owner can run jobs only on target accounts target_user_1, target_user_2, the following row should be set in the /etc/sudoers file:

    <agent_owner_account> ALL=(target_user_1, target_user_2) NOPASSWD: ALL

    EXAMPLE 2: The Agent owner can run jobs on all target accounts, the following row should be set in the /etc/sudoers file:

    <agent_owner_account> ALL=(ALL) NOPASSWD: ALL

When running sudo with specific command restrictions (in the sudoers file) for each user, it stops working. For example, <agent_owner_account> ALL=(ALL) NOPASSWD: <command restrictions>. By default the –i flag is used with the sudo command (for loading user environment setting such as .profile). To disable it add the parameter, SUDO_USE_I_FLAG, to the OS.dat file with value n or N.

Prepare the agent for non root uninstall

Returns the agent to the state it was in after the installation and removes it from the /etc/ctm.conf file

Parent Topic

set_agent_mode