The problem: Each time I try to execute the sudo command, and type the correct password, it rejects the password.

I am at the end of my rope with internet searches, I’m close to just wiping and trying an operating system reinstall.

I am new to linux and I recently installed ubuntu 22.04.3. I haven’t been able to access the sudo command since the install. I’m currently attempting to install firewalld, but I’m going to need this command for other things as well and I’m starting to wonder if there is something wrong with my install or worse.

Many of the troubleshooting techniques I’ve come across contain a catch 22 in that they require the sudo command to solve this, which I am unable to execute.

Edit: Thanks to everyone who helped me with this issue. Update. I tried a first disk erase and install of ubuntu. During the first attempt I went through the software updates and I did a few things like changing firefox settings before attempting to change my root password. I was unable to change the root password when I attempted to.

Attempt #2. I reformatted and immediately tried to set my root password and this time it worked, and I have had no issues since. So take all of that for what it’s worth.

1 point

If you typed your password wrong too many times you may have been locked out for a certain amount of time (normally 30 mins after 3 wrong attempts). In this situation sudo will not display a different error it will still say the password is wrong. You can clear the failed attempts using the command “faillock --reset”. Hopefully that solves it if not check your caps lock, and keyboard layout.

permalink
report
reply
1 point

Are you sure you are inputting the right password? For instance, are you sure your keyboard layout is correct? If the keyboard layout is different, you may think you type one thing but type another.

It is also possible that you have simply misspelled the password during setup. A reinstall is the only way to fix that I think.

permalink
report
reply

Ubuntu Linux

!ubuntu@lemmy.ml

Create post

Linux for Human Beings.

Ubuntu is a popular Linux operating system for PC / mobile devices, etc.

Developed by Canonical & based on Debian (another older Linux OS) which is known for it’s rock solid stability.

Ubuntu is trusted everywhere computing by professionals and common users alike.

https://ubuntu.com/

Community stats

  • 127

    Monthly active users

  • 68

    Posts

  • 37

    Comments

Community moderators