-4

I have a complex password in Ubuntu So I don't want to ask for my password every time Is there a way I want to disable it because it asks me to enter the password in everything, install programs, give commands, and even when opening or closing the system

egydragon
  • 1
  • 1

1 Answers1

-2
sudo visudo

put the NOPASSWD:ALL everywhere:

#User alias specification
yourusername ALL=(ALL) NOPASSWD:ALL

User privilege specification

root ALL=(ALL:ALL) NOPASSWD: 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) NOPASSWD: ALL

It will still bug you about a password when installing software. I still do not know how to remove that ..