You are not logged in.

#1 2015-05-30 10:32:52

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 104

[SOLVED] Extend password time

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

#2 2015-05-30 10:48:20

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Extend password time

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

#3 2015-06-01 20:05:30

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 104

Re: [SOLVED] Extend password time

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

#4 2015-06-01 20:16:42

dopeadmin
Member
Registered: 2015-05-13
Posts: 8
Website

Re: [SOLVED] Extend password time

alocacoc wrote:

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

#5 2015-06-03 22:05:40

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 104

Re: [SOLVED] Extend password time

Excellent, writing the timestamp timeout setting in sudoers to -1 did the trick.

Thank you so much.

Offline

#6 2015-06-03 22:19:37

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: [SOLVED] Extend password time

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

#7 2015-06-04 18:14:03

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 104

Re: [SOLVED] Extend password time

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

Board footer

Powered by FluxBB