INSTALLATIONS

Install and enable sudo command in Debian

enable sudo
enable sudo

Install and enable sudo command in Debian

This post helps to install and enable sudo command in Debian. By default, sudo is not enabled in Debian. Many users are adhering to use this security feature and they end up with the absence of sudo in Debian. When they try to execute the command with “sudo”, it appears an error message. Hence, I am explaining how to install sudo in Debian.

Some of the benefits of using sudo are given below:
  • You can keep your server root password secret.
  • Records every activity of sudo user does as root.
  • It only allows a user to execute the permitted commands.
  • It allows to manage centrally.

How to Install and use the “sudo” command in Debian

First, you must log in as root. Then copy the commands below:

apt-get update -y
apt-get upgrade -y
apt-get install sudo -y

After updating the repositories and installing sudo, let’s add your user to the sudo group:

adduser [USER_NAME] sudo

Now, you will need to restart your system and that’s it, sudo is installed on your Debian.

Also Read:

If you like the post Understanding top Command and wish to receive more articles from us, please like our FB page: GrepItOut

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments. For more details on our services, please drop us an E-mail at info@grepitout.com

Topics