I want my server to not allow root login. For this I want to set the PermitRootLogin
to No
(in the SSH daemon config), but before doing that I want to make sure I can switch to root from another user account with sudo su -
.
The problem is that I reset the password for account admin and then, when I tried to to sudo su -
, it gives me a message: password incorrect, but the password is the correct one (the new one).
What could be the problem?? I already checked the account is not blocked.
sudo su -
su -
.