Manuel Ignacio López Quintero

Do you like this article? Share it with this link. Thanks!

Enable 'sudo' on an user account on Debian

The command sudo allows you running programs with the security privileges of another user (commonly root).

There are many benefits of using it instead of su so it's important enable sudo in an user account. In this tutorial you allow an user account have all the privileges with sudo. For more custom, visit the Debian Wiki of 'sudo'.

At first, login to an user account and open a terminal to execute the following commands:

  1. Start becoming superuser with su. Enter your root password.
  2. Now, install sudo with apt-get install sudo.
  3. Choose one:
  4. Now, log out and then log in with the same user.
  5. Open a terminal and run sudo echo 'Hello, world!', enter your user password and that's it!

If all goes well you'll see on screen Hello, world!.

Do you like this article? Share it with this link. Thanks!