If you use Terminal and are often using sudo commands, you can increase the sudo password timeout so you aren’t prompted so often to re-enter your password for certain sudo commands. We will need to edit the sudoers file in /etc/. Follow the below steps.
1. Open Terminal (Applications -> Utilities -> Terminal)
2. Type the following command and hit return.
3. Use your arrow key and go down to the bottom of this file we are editing pictured below.
4. Insert a new line – type s or something then hit return to start the new line. You can enter the following lines that will do the following. The timeouts are based on minutes.
(No password caching)
(10 minute password caching)
(Infinite cache, only need to enter password once)
5. In this example, we will use 10 minutes for our password caching
6. Once you typed in the line, hit Escape (ESC). Then type Colon : and finally type wq and hit return to save changes.
7. You can repeat step 2 to verify your sudoers file is saved with your updates.
8. In order for your updates to take affect, re-launch Terminal.
To learn more about sudo and the sudoers file, type
in Terminal. You can learn to add specific sudo limits to Mac user accounts as well.
* Please use the comment form below. For LIVE chat updates, use the SHOUT BOX below.*