-2

My main problem is that I cannot use sudo. My root account is locked using sudo passwd -dl root.

I have two users on my machine. root and admin, admin does not have su permission. When I try to use sudo on admin user, it says that admin is not in the sudoers file.

When I try to use su while logged in admin user

su: Authentication failure

and when I try to use sudo

admin is not in the sudoers file.  This incident will be reported.

can I unlock my root user back?

1 Answers1

0

Try this:

pkexec gedit /etc/sudoers

Then change this:

#%admin ALL=(ALL) ALL

To

%admin ALL=(ALL) ALL

Not sure if that will do it because my situation was different but I hope so!