The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 90,263     Votes:  12 
Tag : prompt  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/852530
Title: How do I stop Ubuntu from asking for my password every time I install something?
ID: /2016/11/23/How-do-I-stop-Ubuntu-from-asking-for-my-password-every-time-I-install-something_
Created: November 23, 2016
Upload: December 22, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Type sudo visudo and this screen appears:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset, timestamp_timeout=120
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification

The first command Defaults env_reset, timestamp_timeout=120 has been modified with a timeout of 120 minutes between having to enter sudo password. The normal default is 5 minutes. Although you can change this to a very large number you will still have to enter it once per boot.

⇧ Why are there two kernels under `/lib/modules` on 16.04 LTS? Stop a process when my PC sleeps  ⇩