You are not logged in.

#1 2018-12-19 18:36:09

ignis-fatuus
Member
Registered: 2018-12-19
Posts: 2

[Solved] Extend the password entry when building /w yay?

I have been looking through various man pages and archwiki entries but have been unable to figure out how to extend the window of time of which yay allows the input of a password with sudoer privileges. There are times when building large packages that a fair amount of time (30 min to 1 hr +) can go by, yet the window for password input is only a couple of minutes. I read a closed post from a couple of years back where it was suggested to add the following to /ect/suders:

Defaults timestamp_timeout=60

I am not a very big fan of this solution as I feel it makes my system less secure. Does anyone know of a way to make it so that the password prompt will not timeout and stay active until a password is entered?

Last edited by ignis-fatuus (2018-12-19 19:10:40)

Offline

#2 2018-12-19 18:43:54

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

Re: [Solved] Extend the password entry when building /w yay?

'man sudoers'


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.

Online

#3 2018-12-19 18:44:15

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [Solved] Extend the password entry when building /w yay?

See `man 5 sudoers` the passwd_timeout option.

Offline

#4 2018-12-19 18:53:12

ignis-fatuus
Member
Registered: 2018-12-19
Posts: 2

Re: [Solved] Extend the password entry when building /w yay?

That looks like it will do the trick. I must have missed it my searches and thanks for quick replies.  For the record for anyone else searching for a fix for this issue, I solved my problem by adding the following to /etc/sudoers:

Defaults passwd_timeout=60

Whereas 60 minutes should be enough for my uses, I imagine that it can be set to an indefinite amount of time via 0.

Last edited by ignis-fatuus (2018-12-19 19:06:52)

Offline

#5 2018-12-19 19:04:39

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

Re: [Solved] Extend the password entry when building /w yay?

I imagine that it can be set to an indefinite amount of time via -1.

You didn't read the passwd_timeout entry fully then.

In any case, please mark your thread as solved.

https://wiki.archlinux.org/index.php/Co … ow_to_post


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.

Online

Board footer

Powered by FluxBB