Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Oct 2004 19:33:47 +0400
From:      Alexey Karguine <bm@netmaster.ru>
To:        "Bruno M. Petroski" <petroski@inf.ufsc.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Ping under normal user
Message-ID:  <416FEDDB.6030405@netmaster.ru>
In-Reply-To: <416FE32B.2080203@inf.ufsc.br>
References:  <416FE32B.2080203@inf.ufsc.br>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruno M. Petroski wrote:
> Hi,
> 
>     I'm using FreeBSD 4.10, and I'm trying to ping a computer using the 
> following command as a normal user, but I receive an error message.
> 
> $ ping -s 64 -c 10 10.1.1.1
> ping: -s flag: Operation not permitted
> 
> 
>    If I use the same command as root, no error message is given. Is 
> there any option I could setup in order to overcome this error???
> 
> # ping -s 64 -c 10 10.1.1.1
> PING 10.1.1.1 (10.1.1.1): 64 data bytes
> 72 bytes from 10.1.1.1: icmp_seq=0 ttl=63 time=8.737 ms
> 72 bytes from 10.1.1.1: icmp_seq=1 ttl=63 time=0.265 ms
> 72 bytes from 10.1.1.1: icmp_seq=2 ttl=63 time=0.260 ms
> 72 bytes from 10.1.1.1: icmp_seq=3 ttl=63 time=4.183 ms
> 72 bytes from 10.1.1.1: icmp_seq=4 ttl=63 time=0.258 ms
> 72 bytes from 10.1.1.1: icmp_seq=5 ttl=63 time=6.691 ms
> 72 bytes from 10.1.1.1: icmp_seq=6 ttl=63 time=6.648 ms
> 72 bytes from 10.1.1.1: icmp_seq=7 ttl=63 time=2.983 ms
> 72 bytes from 10.1.1.1: icmp_seq=8 ttl=63 time=0.261 ms
> 72 bytes from 10.1.1.1: icmp_seq=9 ttl=63 time=0.260 ms
> 
> --- 10.1.1.1 ping statistics ---
> 10 packets transmitted, 10 packets received, 0% packet loss
> round-trip min/avg/max/stddev = 0.258/3.055/8.737/3.142 ms
> 

You can setup sudo (/usr/ports/security/sudo) to run any programs you 
wish as root.


-- 
Alexey Karguine



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?416FEDDB.6030405>