Disabling password prompts

I've checked this thread [solved] How to prevent password prompts? - #5 by Aravisian but obviously, the solution doesn't work anymore as stated there. There's a temp fix, but I would like to know how to fix it properly.

So I edited visudo to look like this:

# User privilege specification
root  ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) NOPASSWD: ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
x ALL=(ALL) NOPASSWD: ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d

but Software app still shows password prompts once I want to install something. How to disable those, as it's a frustrating experience to type 20+ chars on every installation?

Those cannot be disabled. I recommend changing your password to a shorter and easily typed one.
https://www.cyberciti.biz/faq/change-root-password-ubuntu-linux/

1 Like

You could also install a password manager that could handle the auto-typing for you. I'm not entirely sure how it'd work in this case since it's a prompt, but at least you could simply copy+paste the password easily.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.