Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ping error icmp open socket Operation not permitted [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 658

PostPosted: Mon Mar 16, 2015 1:57 pm    Post subject: ping error icmp open socket Operation not permitted [SOLVED] Reply with quote

Hi,

Is there a special group a user must be in to use the ping command?
Code:
groups
Quote:
tty wheel uucp audio video games kvm usb users plugdev wireshark myuser
Code:
ls -la /bin/ping
Quote:
-rwx--x--x 1 root root 39728 Dec 3 23:21 /bin/ping
When I try the command, I get
Code:
ping -c 3 192.168.2.100
Quote:
ping: icmp open socket: Operation not permitted
I tried the solution mentioned in a few other posts
Quote:
Code:
chmod 600 /bin/ping
chmod +x /bin/ping
but this has no effect.

Last edited by Progman3K on Mon Mar 16, 2015 2:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 658

PostPosted: Mon Mar 16, 2015 2:21 pm    Post subject: Solved Reply with quote

Issuing the following command to set the special (UID) bit fixes the problem:
Code:
chmod 4755 /bin/ping
Code:
ls -la /bin/ping
Quote:
-rwsr-xr-x 1 root root 39728 Dec 3 23:21 /bin/ping
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6962

PostPosted: Mon Mar 16, 2015 2:26 pm    Post subject: Reply with quote

mine is set to 104711
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 658

PostPosted: Mon Mar 16, 2015 2:35 pm    Post subject: Reply with quote

krinn wrote:
mine is set to 104711
Hi krinn!
Thanks for taking the time to reply!
Is there a particular permission mask that should be applied?
I understand that setting these things too permissively can affect system security.
What's the best permission mask to use and why?
PS - Your avatar; a Blade Runner reference?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6962

PostPosted: Mon Mar 16, 2015 2:44 pm    Post subject: Reply with quote

Progman3K wrote:
krinn wrote:
mine is set to 104711
Hi krinn!
Thanks for taking the time to reply!
Is there a particular permission mask that should be applied?
I understand that setting these things too permissively can affect system security.
What's the best permission mask to use and why?
PS - Your avatar; a Blade Runner reference?

This is how it is set on mine, not that i did it myself, but the key is the setuid bit that will allow non root to use it.

Yep, that's the owl from bladerunner, by far my top movie (i love p k dick, h ford and r scott, so the 3 in one movie, no movie can beat that for me)
And an owl for forum... well, i just find it funny
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum