My sudo/root password doesnt work or change

Hi, for some reason my sudo password doesn’t work anymore, i was hopping that i just type something wrong or he CAP key was active, or my keyboard , but nope, it just dont work anymore. Any possibility to recover and change the password ? Im still new to this. Thanks

When you installed, did you set your root password to be different to your user password?

You might try switching to the root user by running:

su

Enter the root password when prompted. Then change the password for your user account, substituting username for your Linux account name:

passwd username
1 Like

Thank you so much!! I works like a charm, i was worry what i was hacked or something but now all is in order. You are a lifesaver.

1 Like

If you’re absolutely certain the password was changed unexpectedly, you might have reason to at least be cautious about this :male_detective: :wink:

Any security
suggestion?

That’s a BIG question :sweat_smile:

Your security solution is also a very personal one, addressing your habits, needs, and risks.

Broadly speaking though, you might consider some options (or not). This list has my biases of course. Someone else might rightly approach it differently:

  • Full disk encryption using LUKS, but do it during EndeavourOS installation.
  • Ensure your system firewall is active and strict (eg: Block zone).
  • Keep your system up-to-date (eg: eos-update --yay).
  • Use a “privacy” browser (eg: librewolf-bin, brave-bin, etc).
  • Use a “private” browser tab when signing into online services you don’t use frequently (eg: services you don’t use daily).
  • Use a good password manager to create and store ridiculously strong unique passwords for every servcie (eg: keepassxc).
  • Don’t download anything dodgy.
  • Don’t click on anything suspicious.
  • Pay attention to what you install, and install only what you need. Uninstall it when you no longer need it.
  • Remove orphan packages on a regular basis (yay -Yc).

I could go on, but that’s just some that come to mind.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.