Grant root privileges to a cluster administrator

Optional. A root user within a Solaris environment can choose to give root privileges within the cluster to the cluster administrator.

By default, only root can start, stop, or restart the cluster.

Give root privileges to the cluster administrator so that it can start a local host in the cluster, or shut down or restart any hosts in the cluster from the local host. For the cluster administrator or root to start the cluster, or start any hosts specified by name, you need to be able to run rsh across all hosts in the cluster without having to enter a password; see your operating system documentation for information about configuring rsh.

Do the following to give root privileges to the cluster administrator for one host. Run the command as root on each host in the cluster.

Run the egosetsudoers.sh command.
Note:

If the /etc/ego.sudoers file already exists, run egosetsudoers.sh ‑p instead.

When you run egosetsudoers.sh, it does the following:

  1. It creates the /etc/ego.sudoers file. The file owner is root and the permissions are set to 600 because you ran this command as root. Only the root user can edit this file.

  2. It will setuid the egosh command and change the owner of egosh to root.

Whenever you see instructions to log on as root to start, stop, or restart a host in the cluster, you may log on as the cluster administrator instead.

Users listed in EGO_STARTUP_USERS are now able to run the commands to start, stop, or restart a host in the cluster as root.

Related concepts
Cluster administrator account