Utility to create binary executables to be used with the suid flag
This utility lets you create an executable binary, with the suid flag set.
The suid flag makes it possible for an user to execute an executable as
if they are the owner of the file. For example:
suid-wrapper -o run_docker_sh $(which docker) -- run -it --rm alpine sh --
With the command above, a run_docker_sh will be created. Consider this file
is owned by a user named 'docker'. If a user named 'user' tries to run it,
because of the suid flag, the process that will be started will have the
uid set to that of 'docker', with the same permissions 'docker' has.
Details for suid-wrapper
Package name
suid-wrapper
License
MIT
Last updated
21 July 2023 - latest/stable
This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.
(Ownership verified)
The publisher has verified that they own this domain.
It does not guarantee the Snap is an official upload
from the upstream project.
Enable snaps on elementary OS and install suid-wrapper
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Enable snapd
Snap can be installed on elementary OS from the command line. Open Terminal from the Applications launcher and type the following:
sudo apt update
sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
Install suid-wrapper
To install suid-wrapper, simply use the following command: