Deleted only superuser on system

Hello.

I’m new to linux and not very technical. I was told that it was far safer to have my daily user be a standard user, rather than a superuser. My daily user, and only user on the system is a superuser. I changed the user to a standard user, however I did not create another superuser before doing so. How would I go about restoring superuser privileges to this user, or creating another superuser? Is this even possible? Any help would be greatly appreciated.

You’re going to have to restore your user account’s capabilities ─ and by the way, there’s nothing wrong with having sudo access, so long as you use it wisely.

Boot up from the installation medium in live mode. Open up a terminal window and issue the following commands… :arrow_down:

sudo su -
manjaro-chroot -a
usermod -aG wheel,sys,network,power,lp,optical your_user_name_here
sync
exit
systemctl reboot

Remove the live medium and cross your fingers. :wink:

4 Likes

It worked. Thank you so much, you are an actual life saver. And thanks a million for the quick reply, it means a ton to me.

3 Likes

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