Configuring sudo
The system administrator must configure sudo by modifying the sudoers file. IBM Spectrum Scale™ installs a sample of the modified sudoers file as /usr/lpp/mmfs/samples/sudoers.sample.
Do the following steps before you begin to configure sudo:
- Create a user and group to run administration commands. Note: The examples in this section have the user name gpfsadmin and the group gpfs.
- Allow the root user from an administration node to run commands on all nodes including the
current node with user ID gpfsadmin without being prompted for a password.
For example, the root user must be able to issue a command like
the following one without being prompted for a
password:
# ssh c6f2bc4n8 -l gpfsadmin /bin/whoami gpfsadmin
- Install the sudo program. Sudo is free open-source software that is distributed under a license.
Do the following steps on each node in the cluster:
Sudo is now configured to run administration commands without
remote root login.