[OpenIndiana-discuss] Cannot ping localhost (with NoNet configuration)

James Carlson carlsonj at workingcode.com
Mon Sep 10 10:59:39 UTC 2012


On 09/08/12 19:23, Roel_D wrote:
> Most stupid question, but are running ping as root or as user? 
> A normal user is not allowed to ping! 

I don't think that's it.  As far as I know, /usr/sbin/ping has always
been setuid root.  If that were the problem, the user wouldn't get "host
unreachable," he'd get a permissions error.

% id
uid=1001(carlsonj) gid=10(staff)
% ping -sn 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0. time=0.077 ms
64 bytes from 127.0.0.1: icmp_seq=1. time=0.075 ms
64 bytes from 127.0.0.1: icmp_seq=2. time=0.067 ms
^C
----127.0.0.1 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms)  min/avg/max/stddev = 0.067/0.073/0.077/0.005

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>



More information about the OpenIndiana-discuss mailing list