Difference between revisions of "Sudoers Corrupt"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with " # 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...")
 
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
  
 
In the first terminal, do whatever you need to do with pkexec.
 
In the first terminal, do whatever you need to do with pkexec.
 +
```
 +
pkexec mv /etc/sudoers.d/badfile /tmp/
 +
```
 +
I #1 or #2 in the terminal select super user via number and type in password

Latest revision as of 22:05, 13 July 2021

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/

I #1 or #2 in the terminal select super user via number and type in password