-5

So after 6 years this question was posted I still ran into same issue. I did the followoing :

myusername ALL=(ALL) NOPASSWD:ALL

And it was going fine for some time so if I am installing any software like Zoom in Ubuntu from GUI then there it still asks for password while there is no password for the system! I could only install it using terminal sudo and then it did not ask for the password.

Today its asking for password again while I have none.

I cant do sudo visudo because there is no system password,what can i do to resolve this?

1 Answers1

0

This is still an issue in linux because linux doesn't prevent you from misconfiguring the system. This is not a bug in linux, it is a user error that created the problem.

The question you linked was about someone who deleted their password without adding the sudo configuration directive to allow passwordless sudo.

You have included the correct sudo configuration directive line in your question, but the GUI doesn't use sudo to install software, so you need to configure the GUI to allow software installation without a password for that to work.

Escalating privilege without a password is an unsafe configuration, and unlike other operating systems, is not encouraged or well supported in the default configuration of Ubuntu.

user10489
  • 5,533