How to modify the default timeout of sudo in Ubuntu system?
Time: 2017-05-12Source: Huajun InformationAuthor: Xiaoyuer
Due to system security concerns, Ubuntu systems generally disable the root account by default during installation, and use the sudo command to replace all operations that require an administrator. How to modify the default timeout of sudo in Ubuntu system? Below, the editor of Huajun has summarized the methods, hoping to help you.
Here's how:
sudo visudo
Find the following line
defaults env_reset
Change this behavior like this
Defaults env_reset, timestamp_timeout=x
x represents the time, you can set it to 10 or 30, which means 10 minutes or half an hour.
You can also set it to -1 so that the password will be remembered when you log out or exit the terminal. When doing this, sometimes for security reasons, you can also run the following command to force quit sudo.
sudo -K
The above is the method to modify the sudo default timeout time in Ubuntu system. If your timeout time is not long enough, then quickly try the above method to modify the default time. Hope this helps.
Popular recommendations
-
Vic's diary
Version: 0.5.4 official versionSize: 68.23
Vic Diary is a...
-
3D will do it
Version: v2.0.7.0Size: 343213KB
"3D Meeting Bar" is the world's first device that uses virtual reality technology to organically integrate various functions of traditional offline meeting rooms into an online virtual reality three-dimensional space, bringing...
-
WPS Office For Linux DEB
Version: 10.1.0.5444Size: 77.79MB
The native cross-platform version of WPSLinux is officially released. This version has in-depth platform integration and supports real-time backup, global menu and...
-
Nut Cloud (64bit) For Linux
Version: 2.3.0Size: 0.05MB
Nut Cloud provides the simplest and easiest-to-use free cloud storage service, allowing you to access your files anytime and anywhere. Support Windows,Linux,MacOSX,And...
-
Sun Java SE Development Kit (JDK) for Linux
Version: 6 Update 13Size: 75.28MB
JDK is the core of the entire Java, including the Java runtime environment (JavaRuntimeEnvirnment), a bunch of Java tools and Java basic class libraries (rt.jar)...