A logged-in admin should not need to type the password

You could create a root user account. It is not recommended, but it can be done.

Or you can edit etc/sudoers. But on your own risk. It is not recommended. It is best to make a backup copy before you edit the etc/sudoers file. You could instead of editing this file create an entry in etc/sudoers.d and make sure that the file in etc/sudoers is included
(@includedir /etc/sudoers.d) Please be very careful and inform yourself well before you change anything here. An incorrect entry in this file can lock you out of the system.

Another solution than in the links would be to add
"Defaults:USER_NAME !authenticate"
to the sudoers file.

However, editing this file only eliminates the need to enter the password in the terminal. If you want to install/remove software via graphical programs such as Gnome Software or Synaptic or when you want to update programs via software updater, you will still be asked for a password. These queries of GUI apps would then have to be deactivated separately via polkit.

https://askubuntu.com/questions/614534/disable-authentication-prompts-in-15-04-and-later-versions/614537#614537

3 Likes