You can’t implement any command with the superuser if your Linux terminal gives a “sudo password not working” error. Fortunately, it’s okay to resolve the problem.
Sometimes your Linux system might display a fault indicating a wrong password even after you have entered your sudo username appropriately. This can be astonishing and annoying when you try to finish your work.
Let’s inspect a few easy fixes in case your sudo password doesn’t work on Linux.
1. Log Out and Log into a New Session
A reboot of your Linux operating system is amongst the most well-known and straightforward approaches to fixing brief system matters. The sudo password that isn’t working error can be, in the perfect scenario, a minor glitch in Linux that can be resolved by one quick logout and login or a reboot of the system.
You can physically log off and then log back into your Linux system by using the logout command and the suitable switches in the desktop atmosphere you’re using.
If that isn’t working for you, reboot by restarting. Are you still not able to resolve the issue? Go on to the next option!
2. Change the sudo Password from a Virtual Console Session
If the original and most straightforward solution didn’t serve you, try to reset the user’s sudo password in the Linux remote console. These are the commands to be shadowed:
- Switch to a new virtual console by pressing Ctrl+Alt + F1/F2/F3/F4. You will be received with a completely new TTYx session.
- Change to the root user by using sudo su. sudo su command.
- Using the passwd command, adapt the sudo password of the user:
The steps to accurate the sudo password needs to be fixed for you. Your matter is now solved. If the issue continues to persist, then try the preceding solution.
3. Restart the Systemd-homed Service
system-homed is the system service that is answerable for providing aid to the directory of homes for users. Restarting it can resolve the matter since it rearranges verification mechanisms and resolves any temporary malfunctions in the system.
These are the steps needed to start the systemd-homed service again:
1. Open a completely new terminal.
2. Alter to root by using this command: sudo command.
3. Utilize the command systemctl to restart or start the service systemd-homed:
systemctl start system-homed.service
systemctl restart system-homed.service
These are the steps needed to restart and start the system-homed process. This will resolve the sudo passwd that isn’t a waged issue.
Fixing the “sudo Password Not Working” Error
While it’s an annoying issue, it’s equally easy to solve. Any three solutions will fix the sudo password that isn’t an occupied issue.
Suppose you’re still powerless to get it to work, or you must regularly accomplish Scudo’s time-consuming and work-stopping antics. In that case, it may be time to consider switching to a dissimilar substitute.