I have copied my /usr/bin/ping file to another location (my home directory) with just a typical cp /bin/ping p command and then it stopped working, because the lack of permissions. Precisely:
Ping: icmp open socket: Operation not permitted.
I know that sudo would rather solve my problem, but I should not log in as a superuser.
I also know that it is (probably) all about the lack of some permissions or capabilities (in fact getcap for my copied file shows it's missing the original ping's capabilities), but unfortunately I am not able to use setcap without root privileges .. or maybe I am? Somehow?
How could I solve this problem and be able to use my ping file copy ./p?
pingexecutable is not located at/usr/bin/pingbut at/bin/ping. Can you please [edit] your question and add the output ofls -l ./p /bin/ping /usr/bin/ping? And can you usesudo(i.e. do you have an admin account or just a restricted one)? You will probably need it to fix this, I think. – Byte Commander Nov 18 '15 at 16:16pingat all by the way? – Byte Commander Nov 18 '15 at 16:21bin/pingas you said it is actually still a good question. – mtszkw Nov 18 '15 at 16:21sudoprivilege and manage to get a copy of thepingexecutable running. I understand. – Byte Commander Nov 18 '15 at 16:23