-
Notifications
You must be signed in to change notification settings - Fork 38
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
PermissionError when Pingtop is executed without sudo #21
Comments
hi @ivanhercaz cloud you plz print your Also Please take a look @gzxultra |
Hi @laixintao! Here you have the information you requested me. If you need something more, just tell me!
|
I just replicated this issue, one second, looking now. |
Apologize for the delay, I just realize my PR only granted non-root support for OS X, Linux is a bit tricky. root@host:~# sysctl -w net.ipv4.ping_group_range="<min-uid> <max-uid>" For example, if your uid is 1234, root@host:~# sysctl -w net.ipv4.ping_group_range="0 1234" Not sure if it is the best practice here. |
@ivanhercaz Hi can you try to set |
Hi @ivanhercaz , we use ICMP socket to send ICMP packet without root. However, there is a option control who can use this feature.
This means group number from
SolutionChange this variable to a proper range include your group id, like this:
Then you can use this without sudo. |
About the detail: |
I am going to close this issue, feel free to reopen it if you have further questions. |
Hi @laixintao and @gzxultra, Excuse me for the delay replying to you! That's very nice to know the solutions is something like that. The best of all is that this has been useful to explain this situation in the README and make easier to solve it in the future for new users. Thank you very much for your work and your help with this issue! |
Hi,
Beautiful and useful tool! However I am having a similar problem to #5, but it is already fixed and seems a bit different to this one I am reporting.
I installed it with
pip install pingtop
. Then I ping baidu.com withpingtop baidu.com
but it doesn't work, I get this error:I can't copy the error, so I am going to attach a screenshot.
I achieve to run it thanks to the comment of @laixintao in the mentioned issue, I mean making a
which pingtop
to get the path in which it is installed and then usingsudo PATH baidu.com
.Is there some reason to run it as super user? Or, could it be fixed?
Regards
The text was updated successfully, but these errors were encountered: