How to configure Sudu grace period in Ubuntu?

Within the free software operating systems Linux is one of the most reliable, in which there are commands that are needed to optimize the work, in addition to achieving better performance. Which you can achieve by optimizing and cleaning the Ubuntu system.

Of course, these softwares also bring systems that serve as distribution, in this case it is called Ubuntu, it was designed for desktop computers, as well as educational servers.

As there are different types of command, sometimes it is necessary to configure, modify and use with time limits. Here we are going to see make these changes to the Sudu command within the Ubuntu operating system and if yours is a bit outdated you should think about updating the Ubuntu system to the latest version.

Before we are going to know what Sudu and Ubuntu are and what they are for , also how to modify and configure the sudu grace period in Ubuntu?

Learn how to configure sudo grace period in Ubuntu to enhance your workflow. Avoid repetitive password entry by following this step-by-step guide.

Configuring the sudo grace period in Ubuntu involves editing the sudoers file. This file controls the sudo configuration, including the timeout period. By default, the timeout is set to 15 minutes, but you can customize it to your preference. Here’s a tabular guide to help you through the process:

Step Action Description
1 Open Terminal Open a terminal window in Ubuntu.
2 Edit sudoers File Type sudo visudo in the terminal. This opens the sudoers file in a safe way, preventing syntax errors.
3 Locate Defaults Line Look for a line that starts with Defaults. If it’s not there, you can add it.
4 Set Timeout Value Add or modify the line to include Defaults timestamp_timeout=X, where X is the number of minutes you want for the grace period. If you set X to 0, it will always ask for a password. If you set it to a negative value, the timeout is disabled, and sudo will never ask for a password again after the first time.
5 Save and Exit Save the file and exit. In visudo, this is typically done by pressing Ctrl+X, then Y (for Yes), and Enter.
6 Test Configuration Test your new settings by using a sudo command, waiting longer than your set period, and then using another sudo command to see if it asks for a password again.

Important Notes:

  • Be cautious while editing the sudoers file. An incorrect configuration can lock you out of sudo privileges.
  • Always use visudo to edit the sudoers file as it checks for syntax errors.
  • The changes will take effect immediately after saving the file.
  • The timestamp_timeout is set in minutes. If you need a specific time in seconds, you would need to convert it to minutes (e.g., 30 seconds would be 0.5 minutes).

What is Sudu and what is it for?

This command allows users to have special options in other security programs so to speak that has all the control, as you mention its acronym in English a super user.

With this option you can have control of different functions, modify, delete or create a file, you can have a high level of user with a complete mastery of the whole situation, such as, for example, you can speed up the startup time or system startup . You just have to remember that you have to have experience so as not to cause difficulties, since you will have everything under your responsibility.

What you should know is that these privileges have times or periods of duration so we are going to learn how to change and configure this Sudu command in Ubuntu Linux.

How to modify and configure Sudu grace period in Ubuntu?

The opportunity to be an administrator for a while is very good, since you can achieve different things such as adding or removing applications at the beginning of Linux and you can achieve it using some steps that we will give you, with which we are going to explain you, you will be able to determine the time or modify the one you already had.

Step 1

To begin, you have to start with Ubuntu you have to write this command: sudo gedit / etc / sudoers. When this command is activated, the Sudo configuration file will be opened. Then we must do the next step.

Step 2

When entering this menu you can see many items that are modified, but now we locate the one that does not give the option to change the time or grace period.

Step 3

You can see a text like this: Defaullts: ALL timestamp timeaut: 0, in which you modify the time in minutes of the grace period that they give you.

Step 4

At the end of that text put the time chosen by you, now we save the changes that of the grace period. This means that the operating system will keep my user password for the time that you put in the text that we mentioned before.

As we saw, it is very easy to make changes to the grace periods of Sudu in Ubuntu, it is always good to keep in mind that these privileges of being an administrator require knowing exactly what you want to do, in addition to having experience in this type of operations. This Sudu command has its advantages, we are going to mention three of them that we consider the most important:

  1. You have the option of being able to manage or be an administrator for a certain time without having to enter a password, since just activating this command makes it faster and more direct, this gives greater security to the system.
  2. You also give the opportunity to any user to do administrator tasks for a specified time, without knowing the password or password just by entering Sudu.
  3. As the work is constant every day, this Sudu command makes things easier to enter the operating system and carry out work within it.

Free software systems are very safe, when we see how to make these changes to the sudu grace period within the Ubuntu operating system, it shows us quite clearly that they are very reliable and safe systems, in addition to achieving optimal work performance.

 

by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment