Using Sudo for data collection
This task describes how to use Sudo for data collection. This is used for Linux. The PSL can execute only non-root user commands. Some parameter needs to run some command with root privileges. To avoid root privileges directly, you can configure the PATROL Knowledge Module.
For UNIX, use Sudo to execute the root privileged command.
Sudo properties dialog box
To use Sudo on Linux
- Access the UNIX OS application menu as described in Accessing KM Commands and InfoBoxes
- Select Knowledge Module Admin > Use Sudo.
- Sudo properties dialog box has two options: NO and Without Password. If you select the No option, you are not able to use the Sudo utility (which is the default behavior) and if you select Without Password, you are allowed to use Sudo utility without passing PATROL user password to the Sudo command.
To configure the Sudo on a Linux Computer
- Download the sudo utility from: http://www.sudo.ws/sudo/download.html.
- Open the sudoers file with a text editor. Generally, this file is located in the /etc directory.
To use the Without password option, enter the following line: userName ALL = (ALL) NOPASSWD: ALL
- CommentDefaults requirettyas#Defaults requiretty.
- Save the sudoers file.
- Log off from the monitored server.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*