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?
pkexecfor a root password what exactly would you type provided the account is disabled? – techraf Aug 24 '16 at 04:36pkexecasks for the password of the user who runs it, and checks if they are allowed to do what they are trying to do with it (likesudo).pkexecmay also display a list of authorized users and ask you to pick which one you wish to authenticate as. Do you have an Ubuntu system wherepkexecjust asks for root's password *even when run by someone in thesudo(or on older systems,admin) group? If so, is the root password enabled on this system, and has Polkit's configuration even been edited? – Eliah Kagan Jan 29 '17 at 16:39adminis not enabled for sudo, neither directly nor through a group membership.pkexecwill display "Password for root:" prompt in this case. What is the point of your comment? – techraf Jan 29 '17 at 22:07