Granting root privileges to a cluster administrator

A root user within a Linux® environment can choose to give root privileges within the cluster to the cluster administrator.

Before you begin

  • Ensure that you are logged on as root.
  • Check that the /etc/ego.sudoers file does not exist. If the file does exist, use the -p option.

About this task

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

You can give root privileges to egoadmin so that egoadmin can start a local host in the cluster, or shut down or restart any hosts in the cluster from the local host. For egoadmin or root to start the cluster, or start any hosts that are 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 egoadmin for one host. Run the command on each host in the cluster.

Procedure

Run the egosetsudoers.sh command.
Note: If you already have an ego.sudoers file from a previous cluster, run this command with the option -p.
When you run egosetsudoers.sh, it does the following actions:
  • 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.
  • Sets the user ID upon execution of the egosh command and changes 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 egoadmin instead.