Snapped apps using su/sudo

Sergio Schvezov sergio.schvezov at canonical.com
Thu Dec 22 22:14:46 UTC 2016


El 19 dic. 2016 11:11 AM, "Alberto Donato" <alberto.donato at canonical.com>
escribió:

Hi,

I'm trying to create a snap for sshuttle, the ssh-based VPN app.
One of its components (the firewall manager) needs to either be run as
root, or use su/sudo to be able to configure firewall rules.

The app uses an "if os.getuid() != 0" to check whether it can run.

Is there any way to get it to work inside a snap?


Doesn't putting sudo in front of your command do the trick?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161222/d797cb0f/attachment.html>


More information about the Snapcraft mailing list