A ChromeOS installer for enabling sudo in crosh natively. Requires Developer Mode.
Open Crosh shell (ctrl-alt-t), enter shell, copy paste, and run:
bash <(curl -s "https://raw.githubusercontent.com/shadowed1/sudoCrosh/main/sudocrosh_downloader.sh?$(date +%s)")
Each time ChromeOS is updated these changes are reverted. To re-enable:
- log in as root in VT-2 and run:
bash /usr/local/sudocrosh - Run step 1, reboot and re-run above command.
- Run step 2 and reboot. sudo will be re-enabled.
Credits:
Original Guide: https://gist.github.com/velzie/a5088c9ade6ec4d35435b9826b45d7a3
Created by velzie: https://github.com/velzie
GUI inspired by CRAP: https://github.com/chrultrabook/crap
Update Commands based on: https://github.com/jay0lee/cros-scripts/blob/master/disable_cros_updates.sh

