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:
- Install UFW Firewall on Ubuntu or Debian based distros
- Install TeamViewer on Ubuntu or Debian based Distros
- How to install VidCutter on Ubuntu and Derivatives
- How to Block Traffic by Country using CSF Firewall
- How to avoid accidental deletion of files in Linux
- Install Pulse Secure on Ubuntu, CentOS (VPN Client)
- Install AnyDesk on Ubuntu (TeamViewer alternative)
- How to install Snap package support on Linux
- How to Install Ubuntu Cleaner
- Recover mysql root password
- Softaculous Showing Blank Page in cPanel WHM

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
[…] Install and enable sudo command in Debian […]