traceroute -I Permission denied for root

As root I get the following result:

ngssuse:~ # traceroute -nI 10.200.123.45
Note: the -i and -I options were exchangedfor compability with LBL traceroute
Use -I for ICMP, and -i <ifname> to specify the interface name
unable to create ICMP send socket: Permission denied

Is this a bug?

On 04/08/2011 10:06 AM, hattons wrote:
>
> As root I get the following result:
>
> ngssuse:~ # traceroute -nI 10.200.123.45
> Note: the -i and -I options were exchangedfor compability with LBL
> traceroute
> Use -I for ICMP, and -i<ifname> to specify the interface name
> unable to create ICMP send socket: Permission denied
>
>
> Is this a bug?

For me, ‘sudo traceroute -nI 192.168.1.50’ works from my regular login. It
appears to be a problem with your system, not a general one.

What do you get from

rpm -q --whatprovides traceroute

?

I get net-tools-1.60-747.1.i586

I am at the mercy of IPS devices which are preventing me from getting updates. I’m wondering if this might be an RPM version issue.

This sounds like the same problem nrickert encountered in another thread not two days ago. Search for it.

On 04/08/2011 05:28 PM, Larry Finger wrote:

> For me, ‘sudo traceroute -nI 192.168.1.50’ works from my regular login.
> It appears to be a problem with your system, not a general one.

but, you have ‘hacked’ your user PATH to include /usr/sbin/, or you
have set up /usr/sbin/traceroute in sudoers, or (maybe other things i
don’t know about), witness:


denverd@openSUSE11-3:~> sudo traceroute -nI 192.168.1.50
root's password:
sudo: traceroute: command not found
denverd@openSUSE11-3:~> su -
Password:
openSUSE11-3:/ # traceroute -nI 192.168.1.50
Note: the -i and -I options were exchangedfor compability with LBL
traceroute
Use -I for ICMP, and -i <ifname> to specify the interface name
traceroute to 192.168.1.50 (192.168.1.50), 30 hops max, 40 byte packets
using ICMP
1  * * *
<snip>

NOTE: i do not know the answer to the OPs question…and, apparently
neither does anyone else here: http://tinyurl.com/4ypnqns
maybe this should be raised on the mail list…


CAVEAT: http://is.gd/bpoMD [NNTP via openSUSE 11.3 + KDE4.5.5 +
Thunderbird3.1.8] Can you believe it? This guy Ralph wins $181 million
in the lottery last Wednesday, and then finds the love of his life just
2 days later. Talk about LUCK!

See this earlier thread:

Is traceroute broken in 11.4?

It has already been reported as a bug (see link in the old thread). The bug report lists the problem as “fixed” and gives a link to a test package. I don’t know whether the fix will be pushed as an update to 11.4. In any case, the old thread explains what to do in apparmor settings to resolve the problem.