1

I know this has probably been asked before, but I just installed Ubuntu last night and all the replies I read I honestly couldn't understand anything :p

I need to make some changes, and all of them seem to use sudo. When I formatted the pc and installed Ubuntu, it asked me for a password and didn't give me a chance, to have no password. So I then went on and removed the password completely, when the pc was on and the installation was complete.

I then had to use sudo as I said for a couple things, but it asked for a password. I tried to put the old one, I tried to leave it blank, I also typed NOPASSWD, and other variations of that. Nothing worked. I have rebooted the pc also in between of that so for now I have no idea what to do.

Please help, it's really frustrating :(

Edit: I am not looking to reset or restore any password. All I want is to not have a password set at all, and to not be asked for one by sudo, when there is none.

Gogo
  • 11

1 Answers1

0

From the title :

You can edit your sudoers file like:

sudo visudo

And add the following entry, replace user with your username, for example gogo:

user ALL=(ALL) NOPASSWD:ALL

Press ESC then :wq to save it. Then re-login.

However this is consider as a very bad security approach. Note that each active non-root account needs to have a password.

Edit:

Abbreviation sudo means super user do. Certain binaries are executable only from privileged account - root. Normal user accounts can escalate this by configuring their account in the sudoers file.

If you are asking for restoring the password, refer to the mentioned links in the comments.

fugitive
  • 1,356
  • 8
  • 14