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

Help Me with privileges please #315

Open
davidandradeb opened this issue Apr 23, 2024 · 1 comment
Open

Help Me with privileges please #315

davidandradeb opened this issue Apr 23, 2024 · 1 comment

Comments

@davidandradeb
Copy link

Helllo thanks.
I have a web application for capture packets with the library in payara service application. The service run with other user thats not root, so the application doesnt work.
Can i Help me please?

I Run into the linux server this command

setcap cap_net_raw,cap_net_admin=eip /usr/java/jdk1.8.0_202-amd64/bin/java

but the server application is crashed, please help meee

@davidandradeb
Copy link
Author

davidandradeb commented Apr 23, 2024

Hii.

I try:

setcap cap_net_raw,cap_net_admin=eip /usr/java/jdk1.8.0_202-amd64/bin/java

After:
ln -s /usr/java/jdk1.8.0_202-amd64/jre/lib/amd64/jli/libjli.so /usr/lib/
echo /usr/java/jdk1.8.0_202-amd64/jre/lib/amd64/jli/ >> /etc/ld.so.conf

But doesnt work.

image

[payara@dy-preprod-cloud-interno dlab]$ /usr/java/jdk1.8.0_181-amd64/bin/java -version
/usr/java/jdk1.8.0_181-amd64/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

image

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

1 participant