I lost root access somehow on the only user I had on my laptop, my password didn't work and no password worked (not even admin, blank, root,...), I was desperate because I couldn't do almost anything. It said that my
user is not in the sudoers file. This incident will be reported.
This is what I did to solve it:
- Created an instalation USB with Zorin OS.
- Booted my laptop from the USB.
- Selected the "Try Zorin OS option".
- Went to "+ Other location" in Files (File Explorer) app.
- Selected my laptop's disk.
- Went to
/etc
and in the Right Click menu selected "Open in Terminal". - In terminal
sudo nano sudoers
. - Went to the last line and wrote
user ALL=(ALL) ALL
change user with your username. - "Ctrl + O", then "Ctrl + X".
- Restart and boot from your main Zorin OS.
This process is for people that can't boot into recovery mode in GNU Grub, that was my case.