This task describes how to use Sudo for data collection. The PSL can execute only non-root user commands. Some parameter needs to run some command with root privileges.
To use Sudo on Linux
Note
This menu command is available for local and remote hosts.
- Access the Linux OS application menu.
- Select Knowledge Module Admin > Use Sudo.
Sudu properties dialog box will be displayed:
- Select any of the following from the Use Sudo list
- Sudo is not Configured: You cannot use the Sudo utility, which is the default behavior.
- Use Sudo without Password: Option to use Sudo utility without passing PATROL user password to the Sudo command.
- Use Sudo with Password: Option to use Sudo utility with PATROL user password.
To configure the Sudo on a Linux Computer
You can configure Sudo with or without password.
To configure Sudo without password, perform the following steps:oh
- Download the Sudo utility from: .
- Open the sudoers file with a text editor. Generally, this file is located in the /etc directory.
To use without password option, enter the following line: userName ALL = (ALL) NOPASSWD: ALL
Note
The userName variable represents the user for which the PATROL user is configured.
- Comment Defaults requiretty as #Defaults requiretty.
- Save the sudoers file.
- Log off from the monitored server.
To configure Sudo with password, perform the following steps:
- Download the Sudo utility from: .
- Open the sudoers file with a text editor. Generally, this file is located in the /etc directory.
To use with password option, enter the following line: userName ALL = (ALL): ALL
Note
The userName variable represents the user for which the PATROL user is configured.
Comment Defaults requiretty as #Defaults requiretty.
Add Defaults visiblepw.
- Save the sudoers file.