0

I use Ubuntu Studio 24.04.1 LTS.

Yesterday I wanted to test some changes in my main account (main administer user). Of course, the system asked my superuser password. I wrote it. BUT... The system refuses to let me in.

Of course, I tested the password is right spelling. That is not the problem.

The problem is my account, my main account, that was as administrator account, not anymore!!! Today I am not an administrator, I don't know why!!!

I can see this each time I open a Terminal and I write "sudo". The system tells me: the user isn't into the "sudoers" file. ???

How can I recover the status of administrator?

How can I add my main account into the "sudoers" groups?

What can I do? ???

Juan
  • 1,917

1 Answers1

0

I found the answer in the question quoted by "steeldriver" user:

  1. Use an Ubuntu LiveCD (installation disk).

  2. Click on: "Check Ubuntu without install" option.

  3. When the main GUI is showed, open a terminal and write: sudo thunar

  4. Look for the main home system partition (be careful to enter into the computer HDD or SDD, not the CD folders).

  5. Look for the "etc" folder.

  6. Look for the file "group".

  7. Edit it (with some text editor like mousepad, or nano), looking for the line: sudo:x:27:admin,ubuntu-studio

  8. Change it by: sudo:x:27:admin,ubuntu-studio,(your user name)

  9. Save the changes.

  10. Just in case, check (the same last way, in the same folder) the file "sudoers" and look for the lines: "#Members of the admin group may gain root privileges"

    "%admin ALL=(ALL) ALL"

  11. If those lines are not present (very weird, but...), you will have to write it inside that file.

  12. save the changes and leave the LiveCD session.

  13. Start your system as usual.

The only one question is round my mind is... Why it was happened? ???

Juan
  • 1,917