Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap packages need to be run as root #1

Closed
zigford opened this issue Jul 25, 2018 · 2 comments
Closed

snap packages need to be run as root #1

zigford opened this issue Jul 25, 2018 · 2 comments

Comments

@zigford
Copy link

zigford commented Jul 25, 2018

Thanks for making a working up to date snapd package.
It installed and I can install snap packages on my machine, however, after I have installed an app, it only works if I run it as root:

harrisj@spock-local ~ $ uname -a
Linux spock-local 4.17.4-gentoojesse #1 SMP Sun Jul 8 11:26:11 AEST 2018 x86_64 Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz GenuineIntel GNU/Linux
harrisj@spock-local ~ $ snap version
snap    2.34
snapd   2.34
series  16
gentoo  -
kernel  4.17.4-gentoojesse
harrisj@spock-local ~ $ snap run hello-world
need to run as root or suid
harrisj@spock-local ~ $ 
harrisj@spock-local ~ $ sudo snap run hello-world
Hello World!

@zigford
Copy link
Author

zigford commented Jul 28, 2018

I'm not sure what changes in the ebuild would be required, but I was able to resolve my problem by adding suid to the snap-confine file in /usr/lib/snapd.
I figured this from reading a bit of the source and confirming by someone posting their directory tree of this directory online, and I could see the suid bit in ls.

@JamesB192
Copy link
Owner

Thank you for finding that. As of today both the release and live versions have snap confine moded 6755.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants