Saturday, July 30, 2022

[SOLVED] Sudo user only using default root password for ssh access

Issue

Hello I am just starting with linux and I am going through the hardening process, I have set up a password for my sudo account and changed the root default password.

The problem is that when I access ssh with my sudo account, the only password that accepts is the default root password.

I tried changing the password after accessing with the default root one but it tells me that the new password is the current password.

How can I fix this? :(

Thanks in advance <3


Solution

Create a new account with admin privileges and set your password to that account. By default root is meant not to have a password to prevent you logging in as root.



Answered By - Piotr Ostrowski
Answer Checked By - Candace Johnson (WPSolving Volunteer)