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

Using pcap4j without root privileges #40

Closed
bruskli opened this issue May 3, 2015 · 1 comment
Closed

Using pcap4j without root privileges #40

bruskli opened this issue May 3, 2015 · 1 comment

Comments

@bruskli
Copy link

bruskli commented May 3, 2015

It is not clearly stated on the great documentation of your package, but you can
add caps to the java binary in order to make live captures without being root.

setcap cap_net_raw,cap_net_admin=eip $JAVA_BIN
java = cap_net_admin,cap_net_raw+eip

More info here
http://packetlife.net/blog/2010/mar/19/sniffing-wireshark-non-root-user/

@kaitoy
Copy link
Owner

kaitoy commented May 5, 2015

Thank you for the information.
I've ever tried it when issue22, but I've not documented at that time.
I added description about Linux capabilities to READMEs.

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

No branches or pull requests

2 participants