needrestart
Inherit
This executable can inherit functions from another.
- This function can be performed by any unprivileged user.
echo '...' >/path/to/temp-file needrestart -c /path/to/temp-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.echo '...' >/path/to/temp-file needrestart -c /path/to/temp-file