Superuser has vanished

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Van_Vinkle
Donor
Posts: 177
Joined: 25. Oct 2012, 17:39

Superuser has vanished

Post 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?
User avatar
gapan
Salix Wizard
Posts: 6302
Joined: 6. Jun 2009, 17:40

Re: Superuser has vanished

Post 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.
Image
Image
User avatar
Van_Vinkle
Donor
Posts: 177
Joined: 25. Oct 2012, 17:39

Re: Superuser has vanished

Post 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.
Post Reply