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

Can't run nextcloud.enable-https with sudo #31

Closed
kristbaum opened this Issue Aug 23, 2016 · 8 comments

Comments

Projects
None yet
3 participants
@kristbaum
Copy link

kristbaum commented Aug 23, 2016

nextcloud.enable-https does require root, but can't be executed with sudo. The error is "sudo: nextcloud.enable-https: command not found".
It works if you emulate a root shell with sudo -i. Is this maybe an issue with snap-confinement?

@oparoz

This comment has been minimized.

Copy link
Member

oparoz commented Aug 23, 2016

You need to call a different binary:
sudo /snap/bin/nextcloud.enable-https

@kyrofa

This comment has been minimized.

Copy link
Member

kyrofa commented Aug 23, 2016

Yeah, /snap/bin/ isn't in the path for sudo at the moment (a bug which been fixed but is being SRUd, which takes a bit). A workaround while we're waiting is to use the absolute path as @oparoz mentioned.

@kristbaum

This comment has been minimized.

Copy link
Author

kristbaum commented Aug 23, 2016

So it the bug is in snapd?

@kyrofa

This comment has been minimized.

Copy link
Member

kyrofa commented Aug 23, 2016

So it the bug is in snapd?

It ended up being fixed in sudo (LP: #1595558).

@kristbaum

This comment has been minimized.

Copy link
Author

kristbaum commented Aug 23, 2016

Ah thanks, is it okay if I leave the issue open until the fix comes out of xenial-proposed?

@kyrofa

This comment has been minimized.

Copy link
Member

kyrofa commented Aug 23, 2016

Oh certainly, I probably would have re-opened it if you closed it 😄 . Thanks for the report!

@kristbaum

This comment has been minimized.

Copy link
Author

kristbaum commented Aug 23, 2016

Great, so let's: Ceep Calm, and sudo apt update! ;)

@kyrofa kyrofa added the fix-in-beta label Aug 31, 2016

@kyrofa

This comment has been minimized.

Copy link
Member

kyrofa commented Sep 13, 2016

Just saw that this works in 16.04 now. Make sure you're up-to-date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.