Using Sudo for data collection
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
- 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: 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 without password option, enter the following line: userName ALL = (ALL) NOPASSWD: ALL
- 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: 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 with password option, enter the following line: userName ALL = (ALL): ALL
Comment Defaults requiretty as #Defaults requiretty.
Add Defaults visiblepw.
- Save the sudoers file.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*