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

Ubuntu - Run application without sudo permissions? #489

Open
bfrost831 opened this issue Apr 15, 2022 · 1 comment
Open

Ubuntu - Run application without sudo permissions? #489

bfrost831 opened this issue Apr 15, 2022 · 1 comment
Labels
usage Questions on how to use the library

Comments

@bfrost831
Copy link

Is there a way to configure my ubuntu system to be allow a non-sudo user to run this program?

@pyhys pyhys added the usage Questions on how to use the library label Jun 1, 2023
@pyhys
Copy link
Collaborator

pyhys commented May 14, 2024

It is possible to run the application as a regular user if you give it sufficient capabilities:

sudo setcap 'cap_net_raw=ep cap_net_admin=ep' pn_dev

Check the result:

getcap pn_dev

However the bash script for changing network settings can not use capabilities, so you need to implement that as a C program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage Questions on how to use the library
Projects
None yet
Development

No branches or pull requests

2 participants