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

Failed to set capabilities on file #13

Closed
antoinemcgrath opened this issue Sep 6, 2018 · 3 comments
Closed

Failed to set capabilities on file #13

antoinemcgrath opened this issue Sep 6, 2018 · 3 comments

Comments

@antoinemcgrath
Copy link

When attempting the following segment of a Linux install:
sudo setcap 'cap_net_bind_service=+ep' /path/to/hnsd

The responding error is delivered:
Failed to set capabilities on file ` /path/to/hnsd' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file

It could be that not all linux kernals (I'm running 4.4.0-57-generic) support setcap https://serverfault.com/a/874053

@antoinemcgrath
Copy link
Author

Any help on this would be appreciated.

@hschoenburg
Copy link

Oh wow this is old. You need to set the path to your hnsd install. Right now your command includes path/to/hnsd this needs to be the actual path to the compiled executable created by the make command. Should be the root dir of the install.

@antoinemcgrath
Copy link
Author

Missing you <3 & your selfless kindness H

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