traceroute: socket: Operation not permitted

Hi folks,

traceroute not working after make install inetutils-1.9.4, error mesage as below:

$ traceroute www.google.com
traceroute to www.google.com (209.85.202.147), 64 hops max
traceroute: socket: Operation not permitted

However, it working with root:

$ sudo su -
Password:
# traceroute www.google.com
traceroute to www.google.com (209.85.202.147), 64 hops max
  1   192.168.154.1  1.027ms  1.122ms  0.934ms
  2   192.168.203.3  0.701ms  0.527ms  0.513ms
  3   10.14.200.13  9.277ms  6.779ms  7.346ms
  4   10.161.224.1  40.642ms  41.406ms  41.216ms

Try to fix it by chown to local user's permission, but still not working:

# ls -l /usr/local/bin/traceroute
-rwxr-xr-x  1 root  wheel  71028 Nov 14 16:38 /usr/local/bin/traceroute
# chown zhoufeng:wheel /usr/local/bin/traceroute
# exit
logout
$ ls -l /usr/local/bin/traceroute
-rwxr-xr-x  1 zhoufeng  wheel  71028 11 14 16:38 /usr/local/bin/traceroute
$ traceroute www.google.com
traceroute to www.google.com (209.85.202.147), 64 hops max
traceroute: socket: Operation not permitted

Any suggestion is appreciated, thanks!

Answered by Stephen.Z in 277553022

Thanks guys, fixed it by replacing traceroute with old one:

$ mv /usr/local/bin/traceroute /usr/local/bin/traceroute.bak
$ ln -s /usr/sbin/traceroute /usr/local/bin/traceroute
$ traceroute www.google.com
traceroute to www.google.com (209.85.202.147), 64 hops max, 52 byte packets
1  192.168.154.1 (192.168.154.1)  1.636 ms  3.971 ms  1.168 ms
2  192.168.203.3 (192.168.203.3)  0.719 ms  0.921 ms  0.908 ms
3  10.14.200.13 (10.14.200.13)  7.714 ms  7.645 ms  9.817 ms
4  10.161.224.1 (10.161.224.1)  41.871 ms  42.224 ms  41.511 ms
Accepted Answer

Thanks guys, fixed it by replacing traceroute with old one:

$ mv /usr/local/bin/traceroute /usr/local/bin/traceroute.bak
$ ln -s /usr/sbin/traceroute /usr/local/bin/traceroute
$ traceroute www.google.com
traceroute to www.google.com (209.85.202.147), 64 hops max, 52 byte packets
1  192.168.154.1 (192.168.154.1)  1.636 ms  3.971 ms  1.168 ms
2  192.168.203.3 (192.168.203.3)  0.719 ms  0.921 ms  0.908 ms
3  10.14.200.13 (10.14.200.13)  7.714 ms  7.645 ms  9.817 ms
4  10.161.224.1 (10.161.224.1)  41.871 ms  42.224 ms  41.511 ms
traceroute: socket: Operation not permitted
 
 
Q