Grant root privileges to a cluster administrator

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

Check the following:

  • That you are logged on as root.

  • That /etc/ego.sudoers does not already exist. If the file does exist, use the -p option below.

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

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 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.

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:

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.

It setuids 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 egoadmin 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.