Configure sudo in Debian
By default, root account is not enabled to login to Debian. As a result, a sudo authentication is needed when you add Debian Linux as a Linux Node.
Follow these steps:
- Log in to the Linux node and switch to root using su command.
- If sudo is not installed, install sudo package using the following command:
apt-get install sudo
- Add an existing user with id=user to group=sudo:
Example:
adduser user sudo
- or create a new user with sudo
adduser user
adduser user sudo
- Log into the user shell, and type the following command to verify that the user is authorized:
sudo -v
You have successfully configured sudo in Debian.
Copyright © 2018. All rights reserved.
|
|