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

Bail out if not run as root #387

Merged
merged 2 commits into from
Nov 7, 2018
Merged

Conversation

DimitriPapadopoulos
Copy link
Collaborator

@DimitriPapadopoulos DimitriPapadopoulos commented Nov 7, 2018

Actual root privileges are required in many places, depending on the OS:

  • On Linux, the 'noauth' option of pppd seems to require actual root privileges. Being a member of the 'dip' group on Ubuntu is not sufficient.
  • On Linux, setting routes requires root privileges unless user has CAP_NET_ADMIN capability.
  • On FreeBSD, setting routes using 'route' requires root privileges.

Fixes #373.

Actual root privileges are required in many places, depending on the OS:
* On Linux, the 'noauth' option of pppd seems to require actual root privileges. Being a meber of the 'dip' group on Ubuntu is not sufficient.
* On Linux, setting routes requires root privileges unless user has CAP_NET_ADMIN capability.
* On FreeBSD, setting routes using 'route' requires root privileges.
@mrbaseman
Copy link
Collaborator

Hmm... I would merge this, but travis-ci is stuck somehow, although the commit itself seems to have passed the required check

@mrbaseman mrbaseman merged commit ff290d1 into adrienverge:master Nov 7, 2018
@mrbaseman
Copy link
Collaborator

ok, after updating the branch travis-ci ran through smoothly

@DimitriPapadopoulos
Copy link
Collaborator Author

Not the first time travis is stuck. This seems to be happening often these days.

@mrbaseman
Copy link
Collaborator

I have seen it on my pull requests occasionally and there it helped to refresh the travis-ci web interface a couple of times. But I think this can do only the owner of each pull request.

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

Successfully merging this pull request may close these issues.

Bail out if not run as root?
2 participants