H    Division of Administrative Privileges

This appendix provides information about the division of administrative privileges using DOP.

H.1    Assigning System Administration Privileges Using dop

In previous releases of Tru64 UNIX, the only persons who could gain access to many of the system administration programs were authorized users of the root (superuser) account. This meant that to devolve the responsibilities of administering systems, it was often necessary to share the root password, a significant security risk. When an authorized person was removed from the list of authorized users, it was necessary to change root account passwords.

The dop (division of privileges) utility enables a root user to assign access to certain classes of administrative tasks to other users or groups of users. This enables a site to minimize access to the powerful root account. With the assigned privileges, users and groups can only execute privileged programs, such as dxaccounts to administer user accounts, without knowing the root password. The fully privileged root user can use dop to assign and administer user privileges, which can be done on a temporary or permanent basis.

Administrative tasks (or actions) are organized into related groups and named for the particular privilege they convey on a user. For example the Security privilege is extensive, and when granted to users other than root it enables those users to run the following tasks:

dopconfig

Run dop, and grant privileges to other users

secconfig

Configure the overall system security level

auditconfig

Configure the audit environment on the system using the SysMan Menu interfaces.

dxaudit

Configure the audit environment on the system using the X11 compliant interface Audit Configuration. This is available from the CDE Application manager - Configuration.

This organization of tasks ensures that no matter what type of interface the privileged user invokes,he or she will have the authority to use it as if they were the root user. Note that the Security privilege is the most powerful privilege because it enables privileged users to grant all other privileges to themselves and to others. For this reason it is unlikely that it will be granted to users other than root.

In contrast, other privileges, such as mailManagement, are not extensive, and grant only access to the mail management task. However, before granting privileges to groups, you should examine the contents of the /etc/group file to ensure that the members of a group are appropriate candidates for the privileges. If NIS is in use, you should also check the members of NIS groups before assigning a NIS group any privileges. Use the SysMan Menu Accounts option to review groups, and if necessary, to create new groups of privileged users.

To view a complete list of privileges, invoke dop as described in the following sections, which also describe the process of granting privileges to users and groups.

H.1.1    Invoking dop

You can invoke dop by the following methods:

H.1.2    Using the dop Command Line

You can maintain the dop database or attempt to run privileged actions (tasks or programs) using dop command line options. The SysMan Menu option described in Section H.1.3 provides you with an easy way to look up privileges and actions, however it does not provide the dop database options available from the command line.

For a complete list of the command line options, refer to the dop(8) reference page. Help on the dop command options can be obtained by typing dop -h.

The following sections provide some examples of using dop from the command line.

H.1.2.1    Launching Privileged Actions (Tasks)

You can attempt to run any action ( a task or program) from the command line, and the dop utility verifies your access to the privilege against the privilege database as follows:

If you have the privilege, the action is launched. In this case, the user management interface of the SysMan Menu Accounts option is launched.

H.1.2.2    Administering the DOP Database

To administer the DOP database, you use certain command-line flags and options with the dop command. The database is a binary image to ensure security, so only the dop command should be used to make changes. Only the root user is permitted to make changes to the database.

Administering the database involves adding, deleting, or modifying database entries and updating (writing) the binary file. Before you perfrom any of these tasks, you need to gather the following information:

  1. Optionally, an action name -- If you are adding actions to the database, you need to assign a name to it that enables you to easily recognize what program is being run by the action. For example, if you add /usr/bin/X11/xhost to the HostManagement privileges, you may want to name it hostmanager_cli to identify it as a command line interface.

  2. Required -- The names of any privileges that you plan to change. To obtain a complete list of privileges you need to use the SysMan Menu DOP option, as described in Section H.1.3.

  3. Required -- The absolute paths to any programs that you intend to add to a privilege. For example, /usr/bin/X11/xhost. You also have an option to specify (or restrict) the type of user interfaces under which the action will be launched, such as X11 for CDE, or cli for command line interface. Ensure that the program will run under any interfaces that you intend to specify. Programs that run under SysMan Menu will usually support the greatest range of interfaces.

Using the information you gathered and dop options, you can perform the following administrative tasks:

H.1.3    Viewing or Modifying Privileges Using SysMan

The SysMan Menu option Configure Division of Privileges (DOP) is located under Security. When you select this option, a window is displayed titled Configure DOP on hostname, where hostname is the name of the local system. This interface does not offer as many options as the dop command line. Refer to the dop(8) reference page for more information on command line options, and see Section H.1.2 for examples of use.

The Configure DOP on hostname window enables you to view or modify the current assignment of privileges by adding new users and groups, or removing existing users and groups. The field titled SysMan Privilege List: contains a list of all the currently available privileges. The following are examples of some of the privileges on the list, and a brief description of what a privileged user or group can do:

  1. AccountManagement -- Enables privileged users to create user accounts and groups on the local system. If NIS is in use, it enables the privileged user to create NIS accounts and groups.

  2. EventManagement -- Enables privileged users to administer certain Event Management (EVM) services such as the SysMan Menu View events option or monitor.

  3. HostManagement -- Enables privileged users to perform host management tasks associated with the dxhosts graphical interface or xhost command.

To view the current assignments of any privilege, either double-click on a list entry, (such as PowerManagement) or highlight an entry and press the Modify... button.

A second screen titled Configure DOP: Modify privilege <privilege_name> is displayed, where privilege_name is the list item you selected, such as NetworkManagement. This window contains the following information and options:

Any authorized member of that group will be granted the privilege. You may want to create your own groups of privileged users so that you can administer privileges more easily. Refer to the System Administration guide for information on creating groups.

You can modify the existing privilege assignments, adding or removing existing users and groups, as follows:

  1. In the window titled Configure DOP on hostname, select the required privilege and press the Modify... button.

  2. In the window titled Configure DOP: Modify privilege <privilege_name>, change the assignments as follows:

    1. To administer users, type (or delete) user names from the space-separated list. Use the Browse... option button to view a list of current system users.

    2. To administer groups, type (or delete) group names from the space-separated list. Use the Browse... option button to view a list of current groups.

    3. Press OK to update the dop database and exit from the window, or press Cancel to abort the operation. You will be returned to the previous window, where you can select another privilege or exit and return to the SysMan Menu.

Refer to the online help for more information on the options.