Sudoers Corrupt

From UVOO Tech Wiki
Revision as of 21:59, 13 July 2021 by Busk (talk | contribs)
Jump to navigation Jump to search

As super user

In the first terminal run the following command to get its PID.

echo $$

In the second terminal run

pkttyagent --process PID_FROM_STEP_1

In the first terminal, do whatever you need to do with pkexec.

pkexec mv /etc/sudoers.d/badfile /tmp/

Go to terminal #2 and select super user and type in password