Using Sudo for Data Collection - Documentation for Bmc Patrol for Linux 20.05

 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

  1. Access the Linux OS application menu.
  2. Select Knowledge Module Admin > Use Sudo.

    Sudu properties dialog box will be displayed:

  3. 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

  1. Download the Sudo utility from: .
  2. Open the sudoers file with a text editor. Generally, this file is located in the /etc directory.
  3. 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.

  4. Comment Defaults requiretty as #Defaults requiretty.
  5. Save the sudoers file.
  6. Log off from the monitored server.

To configure Sudo with password, perform the following steps:

  1. Download the Sudo utility from: .
  2. Open the sudoers file with a text editor. Generally, this file is located in the /etc directory.
  3. 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.

  4. Comment Defaults requiretty as #Defaults requiretty.

  5. Add Defaults visiblepw.

  6. Save the sudoers file.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest