You are not logged in.
Pages: 1
I would like to extend the time of the password vality.
Example, I use yaourt, it will compile long time and I have to reenter the password if the compiling takes longer then a certain ammount of time.
Where can I change the time?
Thank you.
Last edited by alocacoc (2015-06-03 22:06:29)
Offline
The description for the yaourtrc option isn't too clear to me, but see https://wiki.archlinux.org/index.php/Ya … word_twice
That also tells you the sudo configuration is relevant here, although that is something you really should know already.
Offline
I added the following line to /etc/sudoers, but it didn't solve the repeated password request.
Defaults timestamp_timeout=0
I also checked the following line in /etc/yaourtrc
SUDONOVERIF=1
I will have to read more about the sudo command to figure out how to set it up.
Offline
I added the following line to /etc/sudoers, but it didn't solve the repeated password request.
Defaults timestamp_timeout=0
To ensure sudo always asks for a password, set the timeout to 0. To ensure the password never times out, set to less than 0.
https://wiki.archlinux.org/index.php/Sudo
Offline
Excellent, writing the timestamp timeout setting in sudoers to -1 did the trick.
Thank you so much.
Offline
I'd advise against a negative value. It's almost as insecure as having NOPASSWD: ALL..
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I am not worried about it in my case, but generally you are right, it might be more smart to put another value, to set the timeout to maybe 60 minutes.
Thank you for the security tip, very appriciated.
Offline
Pages: 1