Page 1 of 1

Superuser has vanished

Posted: 28. Dec 2024, 22:27
by Van_Vinkle
Two or three days ago, I did an update of my computer's BIOS. All was right, apparently.
I don't know if it was a simple fortuity or there was a cause-effect relationship.
Since then, the user root does not exist. If I ask for it, an humoristic answer appears, v.g.

Code: Select all

$ sudo su
Password: 
You can't get the wood, you know.
Any program which must be run as root does the same. For example:

Code: Select all

$ sudo gslapt
Password: 
I'm very sorry, but I'm not allowed to argue unless you've paid.
Of course, I write the password correctly.

Trying to fix it, I restored all the /etc folder from a recent backup, but it doesn't solve anything. Maybe, did I a mistake?

Could you give me some clues?

Re: Superuser has vanished

Posted: 29. Dec 2024, 08:50
by gapan
The root user is there, you just haven't enabled his password. See https://docs.salixos.org/faq/enable-root/

But that is not what your problem is, you're using sudo, which is a different thing, it just allows the user to run something with elevated privileges. As I see it, there are two things that might have happened:

1. You're typing the wrong password. If you use multiple keymaps, for different languages, make sure you're currently using the one you think you're using.
2. You have multiple users in your system and the one you're currently using does not have the right to use sudo. Run

Code: Select all

groups
in a terminal and see if the wheel group is listed.

Re: Superuser has vanished

Posted: 30. Dec 2024, 19:51
by Van_Vinkle
As usual, you were right.

For the BIOS update, I touched up the keymap. I believed that I had returned it to usual configuration, but I was wrong. Now it is well configured, and the superuser is here again.

Thanks also for your tip https://docs.salixos.org/faq/enable-root/. Now I can enter as root directly, without sudo.

I wish you (Gapan and all Salix family) a good year 25.