make „sudo“ sessions last longer on your Mac

If you want to make your „sudo“ sessions last longer there is a pretty easy way to achieve this.

1. Open sudoers file

sudo vim /etc/sudoers

2. Find this line

Defaults     env_reset

3. Change it to the following, where timeout is the amount of minutes your „sudo“ session should last. In my case it is set to 300 minutes.

Defaults     env_reset,timestamp_timeout=300

4. Save your sudoers file

That’s it

 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *