[smokeping-users] hping probe

Peter Kristolaitis alter3d at alter3d.ca
Tue Sep 21 00:06:16 CEST 2010


  Another option would be to use sudo -- allow the smokeping user to 
execute the hping binary with elevated privileges without a password, 
then either modify the probe to use sudo, or write a wrapper script to 
call 'sudo /path/to/hping2 $*'

- Peter


On 9/20/2010 6:03 PM, Josh Luthman wrote:
> It seems to me your option is to update to hping3 or run smokeping as root.
>
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
>
>
> On Mon, Sep 20, 2010 at 5:58 PM, Seth Lyons<slyons at fxcm.com>  wrote:
>> Sorry about that...
>>
>> With setuid:
>>
>> slyons at xxxxx:~>  hping -S www.yahoo.com -p 80
>> Option disabled when setuid `-S'
>>
>> -----Original Message-----
>> From: Josh Luthman [mailto:josh at imaginenetworksllc.com]
>> Sent: Monday, September 20, 2010 5:50 PM
>> To: Seth Lyons
>> Cc: Ralf Hildebrandt; smokeping-users at lists.oetiker.ch
>> Subject: Re: [smokeping-users] hping probe
>>
>> This suggests it can:
>>
>> http://www.kyuzz.org/antirez/hping3.html
>> http://lwn.net/1998/1210/hping.html
>> http://www.google.com/search?q=hping+setuid&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
>>
>> Josh Luthman
>> Office: 937-552-2340
>> Direct: 937-552-2343
>> 1100 Wayne St
>> Suite 1337
>> Troy, OH 45373
>>
>>
>>
>> On Mon, Sep 20, 2010 at 5:49 PM, Seth Lyons<slyons at fxcm.com>  wrote:
>>> I tried that.  Unfortunately hping cannot be run setuid.
>>>
>>> -----Original Message-----
>>> From: smokeping-users-bounces+slyons=fxcm.com at lists.oetiker.ch
>>> [mailto:smokeping-users-bounces+slyons=fxcm.com at lists.oetiker.ch] On
>>> Behalf Of Ralf Hildebrandt
>>> Sent: Monday, September 20, 2010 5:39 PM
>>> To: smokeping-users at lists.oetiker.ch
>>> Subject: Re: [smokeping-users] hping probe
>>>
>>> * Seth Lyons<slyons at fxcm.com>:
>>>
>>>> Everything works fine when I run smokeping as root.  What permissions
>>>> do you suggest I change?  Because of the way hping manipulates
>>>> packets, it must be run as root.  Aside from running smokeping as
>>>> root, what is there left to do?
>>> chown root:root /usr/local/sbin/hping
>>> chmod u+s /usr/local/sbin/hping
>>>
>>> (if hping can be run setuid)
>>>
>>> --
>>> Ralf Hildebrandt
>>>   Geschäftsbereich IT | Abteilung Netzwerk
>>>   Charité - Universitätsmedizin Berlin
>>>   Campus Benjamin Franklin
>>>   Hindenburgdamm 30 | D-12203 Berlin
>>>   Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
>>>   ralf.hildebrandt at charite.de | http://www.charite.de
>>>
>>>
>>> _______________________________________________
>>> smokeping-users mailing list
>>> smokeping-users at lists.oetiker.ch
>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>>> _______________________________________________
>>> smokeping-users mailing list
>>> smokeping-users at lists.oetiker.ch
>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>>>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6444 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20100920/5287ea39/attachment.bin 


More information about the smokeping-users mailing list