I know I can disable password aging with:

sudo visudo

And adding:

Defaults timestamp_timeout=-1

But how can I disable timeout when reading passwords instead? To avoid this kind of error:

[sudo] password for user:
sudo: timed out reading password
sudo: a password is required
 -> exit status 1

Why do you want to disable the password-input-timeout?

@thann
mod
admin
link
fedilink
13M

It’s not advised to run apps with sudo.

I created a script for vim that will let me save with sudo, so I just need the password when saving. I would recommend looking for a similar solution.

@nachtigall@feddit.de
link
fedilink
2
edit-2
3M

You are right in general but not for the case of OP. It is strongly advised to edit the sudoers file with visudo only so that you can not lock yourself out accidently when messing up the config file. See visudo(8).

@thann
mod
admin
link
fedilink
13M

sorry, I misread and thought he was asking trying to run “visual studio” or something lol

I just enable curses, its funny, distracts you from the timeout and makes you relax/check the caps lock etc instead of getting frustrated.

Linux Admin
!linux

    Ask specific questions about how to do something with linux

    General linux discussion on lemmy.ml

    Create Post From:
    lemmy.ml

    Community icon by Alpár-Etele Méder,
    licensed under CC BY 3.0

    • 0 users online
    • 1 user / day
    • 1 user / week
    • 1 user / month
    • 9 users / 6 months
    • 18 subscribers
    • 5 Posts
    • 13 Comments
    • Modlog