While installing Ubuntu I just gave same password whenever it asked for password, and I didn't bothered to see whether root password or user password. Now I have only one user account on my system so I didn't have to bother about types of passwords in any way.
But for some reason I shared the password with friends in the same LAN. Now they are able to establish SSH
connection without my consent.
So I just thought of changing the password thinking changing password at single place so that I can use the system in the same way with the new password. But as I looked for it I came to know I can change password individually for Root
and the User
.
So my doubts are:
- Do I have to change the password separately for both
root
anduser
even if I use same password? - If I use different passwords, when exactly I use the user password? only for user login?
- Which password should I change to avoid SSH connections from others?
sudo
rights, so that user does have ability to add a root password). In your circumstance, I'd nuke your system and start again... as you cannot really know what was done (if they're any good, they'll have made tracks hard to follow for you I'm betting) – guiverc Mar 02 '21 at 07:23