How do I make sudo
remember my password for longer so that I don't have to keep typing it? I do not want to sudo su
and execute commands as root all the time.
I am on Arch Linux and have tried to google this but I get examples to change my password, which is not what I'm after.
sudo
does not "remember your password" so much as it remembers your session -- pam_sudo remembers that you authenticated correctly in that particular console session and retains that flag forpasswd_timeout
seconds.