Modify the Sudo configuration
Depending on your version of EMC Isilon, you may either run the isi_visudo command, or create a drop-in sudoers file in the correct directory to restrict the commands that a user can execute.
Configure visudo to modify the
sudoersfile. The visudo will use the editor specified in the $EDITOR variable, or vi, by default.Specify your preferred editor. For example, to use nano as your editor, execute the following:
# export EDITOR=nano
Once your editor is configured, execute one of the following commands to edit the
sudoersfile.For OneFS versions lower than 9.1:
# isi_visudo # visudo -f /usr/local/etc/sudoers.d/aptare
# isi_visudo # isi_visudo -f /etc/mcp/override/sudoers
Add the following lines to the sudoers file, substituting the name of the user you created for <username>.
<username> ALL=(ALL) NOPASSWD: /usr/local/bin/snmpbulkwalk, \ /usr/bin/isi, /usr/bin/isi_for_array, /usr/bin/isi_hw_statusSave the
sudoersfile.If you have upgraded OneFS to version 9.1 or later, run these commands to using your user credentials to resume the data collection:
# sudo isis version # isi version # sudo -A isi version