Configure sudo in Ubuntu
This section provides information about configuring the sudoers file in Ubuntu 22.
To configure, follow these steps:
- Log into the Linux node as a root user.
- Create a new sudo user using the following command:
- Open the /etc/sudoers file from root and comment the following line in the sudoers file.
- Save the sudoers file.
adduser user
Defaults use_pty
You have successfully configured sudo in Ubuntu 22.