[LINUX] FIX Broken sudoers file - fourslickz/notes GitHub Wiki
Procedure
- Open two SSH sessions to the target server.
- In the first session, get the PID of bash by running:
echo $$
- In the second session, start the authentication agent with:
pkttyagent --process 29824
- Back in the first session, run:
sudo su -
- Enter the password in the second session password prompt.