I have a laptop on which I'm the only user. While installing the laptop I was wondering why I should choose a different password for the root account and user account. My reasoning is:
- The change of finding a valid password doubles if the user and root have different passwords. Of course the salting algorithms make sure that the same password will result in different hashes but still if one starts to guess passwords it increases the change of finding a good one.
- The user has sudo rights so if an hacker finds the user password it can sudo and have the same powers as root. More or less the same is true if the root account is hacked.
- I have disabled the ssh service on this laptop. There are no other ways to login from remote on this machine.
- The filesystem is encrypted with a different password.
What are the flaws in my thought process?
sudo passwd root
. You can do all actions withsudo
, not need for the root.sudo
to be able to give you the privileges of an account, you need that account to exist. I think you mean being able to log in to multiple accounts is pointless if you’re usingsudo
correctly.