New Blog Post: How to change the number of minutes that the sudo password is cached

How to change the number of minutes that the sudo password is cached
by @mikho

Excerpt:

This is a really QUICK TIP!

When you run any command as root, using sudo, the password is remembered for 15 minutes by default.
If you want to change the time that the password is cached, open the terminal (as root) and run:

editor /etc/sudoers
...

Read full blog post here:
https://lowendspirit.com/how-to-change-the-number-of-minutes-that-the-sudo-password-is-cached/

Thanked by (1)sahjanivishal
Tagged:

Comments

  • If you want to change the time that the password is cached, open the terminal (as root) and run:
    editor /etc/sudoers

    Isn't it generally recommended to use visudo to edit the sudoers file?

    Website: thomassen.sh

    Discord: Decicus#0001

  • MasonMason AdministratorOG

    @Decicus said:

    If you want to change the time that the password is cached, open the terminal (as root) and run:
    editor /etc/sudoers

    Isn't it generally recommended to use visudo to edit the sudoers file?

    Probably not a bad idea for newish Linux users as it checks for syntax issues before making the change.

    @mikho - possible amendment to the blog post to make it noob-friendly, if you agree with the above.

    Humble janitor of LES
    Proud papa of YABS

  • mikhomikho AdministratorHosting ProviderOG

    There is a visudo post coming up shortly.
    Which shows the recommended way to edit the sudoers file.

    I will add the link to the new post and more text to explain that it IS possible to do it this way, but there are also other ways.

    Thanked by (1)Decicus

    Get 4 or more NAT servers (mix/match between packages) and get a 20 % recurring discount. https://clients.mrvm.net

Sign In or Register to comment.