Is it possible to remove login password and sudo password on 20.04 LTS permanently?

To remove login and sudo passwords do the following:

  1. Login password:
  • Enable Automatic Login. (This should allow you to log in automatically into the OS) .

  • Also, remove the password from the keyring by using an empty string.
    An alternative (but I won't advise since I don't know the implications) may be to remove the file login.keyring as shown below:

    $ rm ~/.local/share/keyrings/login.keyring
    
  1. Sudo password:
  • Edit the sudoers file:

    $ sudo visudo
    
  • Disable the sudo password:

    • First, check whether there’s an existing rule with your alias.
      (In the file sudoers. I think it is found in /etc/).
      If there is, it should look like: YOUR_USERNAME ALL=(ALL) <SOMETHING>:ALL.

       ~$ sudo nano /etc/sudoers
      
    • If there isn’t, move to the end of the file and create a new rule there as follows:

       YOUR_USERNAME ALL=(ALL) NOPASSWD:ALL
      
    • Save the changes and exit the editor: Ctrl + O and Ctrl + X.

  • Voilà! You can now test it by installing an app.

Hope this goes a long way to help you...