Install latest/stable of suid-wrapper
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Install using the command line
sudo snap install suid-wrapper
Don't have snapd? Get set up for snaps.
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.
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
You are about to open
Do you wish to proceed?
Generate an embeddable card to be shared on external websites.
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.