Configure SUDO on Ubuntu

Linux-Logosudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user (normally the superuser, or root). Its name is a concatenation of the su command (which grants the user ashell of another user, normally the superuser) and “do”, or take action.

Add a user to “sudo” group:

Add the below line (modify the username), it will provide the user all command access.

Generally sudo will ask you the password before executing any command. We can configure it not to ask the password while using sudo privileges.

Or you can add %sudo it will not ask password to any sudo group members.

How to add user to sudo group to execute specific commands

How to know that what commands the user can run with sudo:

Generally sudo remembers your password for 15 minutes after you type it. So how to make sudo forgot your password.

How to modify the password timeout:

Find the below line in sudo configuration file and change the value as your requirement

How to log sudo access:

Add this line in your configuration file and it will start logging your sudo access.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply