Configure sudo in Ubuntu

This section provides information about configuring the sudoers file in Ubuntu 22.

To configure, follow these steps:

  1. Log into the Linux node as a root user.
  2. Create a new sudo user using the following command:
  3. adduser user

  4. Open the /etc/sudoers file from root and comment the following line in the sudoers file.
  5. Defaults use_pty

  6. Save the sudoers file.

You have successfully configured sudo in Ubuntu 22.