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

Can't use ping, ping6 breaks with: raw socket operation not permitted #74

Closed
5chdn opened this issue Apr 1, 2016 · 7 comments
Closed

Comments

@5chdn
Copy link

5chdn commented Apr 1, 2016

photo_2016-04-01_10-42-07

  • Termux version 0.32
  • Android version 6.0.1
  • Kernel 3.4.0
  • LG Nexus 5
@Neo-Oli
Copy link
Member

Neo-Oli commented Apr 1, 2016

ping is normally part of termux-tools (which just executes /system/bin/ping). Is that package installed?

@5chdn
Copy link
Author

5chdn commented Apr 1, 2016

photo_2016-04-01_11-08-28

Yes termux-tools seems to be installed. It looks like a lot is broken here. Should I try reinstalling all termux apps?

@Neo-Oli
Copy link
Member

Neo-Oli commented Apr 1, 2016

Does $PREFIX/bin/ping exist?
If you launch sh so no user configuration is made can you then use ping?
Can you do /system/bin/ping localhost?

@5chdn
Copy link
Author

5chdn commented Apr 1, 2016

/system/bin/ping localhost works. cool.

$PREFIX/bin/ping does not exist.

However, $PREFIX/bin/ping6 does exist.

from sh I can't using ping either.

@Neo-Oli
Copy link
Member

Neo-Oli commented Apr 1, 2016

I think you need to update termux-tools. Prior to Termux version 0.31 /system/bin/ was in the $PATH variable. It has then be removed and important system tools like ping have been added to termux-tools (as a short script, which just launches /system/bin/ping). Can you try apt update && apt upgrade once #73 has been resolved for you?

@fornwall
Copy link
Member

fornwall commented Apr 1, 2016

The ping6 tool has been removed from inetutils (since it requires root/setuid) and has been added to termux-tools as a shortcut to the system one (as already done for ping).

@5chdn
Copy link
Author

5chdn commented Apr 1, 2016

#74 also fixed this issue. thanks again for this awesome terminal app.

@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
agnostic-apollo pushed a commit to termux/termux-tools that referenced this issue Aug 1, 2022
The ping6 binary needs setuid, so use the working system version
instead of installing a broken version for non-root users.

Closes termux/termux-app#74
agnostic-apollo pushed a commit to termux/termux-tools that referenced this issue Aug 1, 2022
The ping6 binary needs setuid, so use the working system version
instead of installing a broken version for non-root users.

Closes termux/termux-app#74
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants