![]()
Pre-requiste sudoers file settings are as follows :
1) In sudoers file (example::/etc/sudoers)
"Default requiretty" should be commented as "#Default requiretty"
and Defaults:<user> !requiretty has to be included,
else script execution in remote machine will fail.
Error thrown :
sudo: sorry, you must have a tty to run sudo
2) Suppose if sudo account is 'monitor' add the following in the sudoers
file w.r.t 'monitor'
monitor ALL = NOPASSWD: <COMMANDS>
Commands which requires sudo access for SapphireIMS to collect data :
1) /usr/sbin/dmidecode
2) /bin/tar
3) /var/tmp
4) /etc/init.d
5) /bin/ls
6) /bin/rm
7) /bin/mkdir
8) SAPP-SCRIPT-INSTALL-PATH [this is defined from global settings. Setting name = 'SSH scripts install path', '/opt/SapphireIMS' by default]
9) SAPP-SCRIPT-INSTALL-PATH/bin/lshw
10) SAPP-SCRIPT-INSTALL-PATH/bin/sdparm
11) /sbin/ethtool
12) /usr/sbin/smartctl
For /var/tmp:-
1) /bin/tar
2) /bin/zcat (or) /bin/gzcat
Notes: By default SapphireIMS will install SSH scripts in '/opt/SapphireIMS' folder. This can be changed by using the global settings key 'SSH scripts install path'