Score:0

Removed sudo Password Requirement in sudoers, Cannot Re-enable It

gs flag

I wanted to stop Ubuntu from requiring a password everytime I did nearly anything, so I followed instructions here to disable the password requirement in sudoers - How do I stop Ubuntu from asking for my password every time I install something?

However, instead of providing universal superuser elevation, which is what I intended to accomplish, the password requirement was disabled but is still needed for nearly everything. I am simply not able to enter it anymore! Furthermore, Ubuntu no longer understands the "sudo" command and will not run any commands at an elevated level. I have no way of going back into the sudoers file and removing NOPASSWD because getting into the file requires elevation and I do not have permission to view it any longer.

How can this be reversed?

001121100 avatar
gs flag
The virtual console produces the same errors as the terminal
Score:0
gs flag

Problem resolved -

I ran pkexec visudo, which allowed me to edit the sudoers file as superuser and remove the undesired line.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.