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<[email protected]>  wrote:
Sorry about that...

With setuid:

sly...@xxxxx:~>  hping -S www.yahoo.com -p 80
Option disabled when setuid `-S'

-----Original Message-----
From: Josh Luthman [mailto:[email protected]]
Sent: Monday, September 20, 2010 5:50 PM
To: Seth Lyons
Cc: Ralf Hildebrandt; [email protected]
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<[email protected]>  wrote:
I tried that.  Unfortunately hping cannot be run setuid.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On
Behalf Of Ralf Hildebrandt
Sent: Monday, September 20, 2010 5:39 PM
To: [email protected]
Subject: Re: [smokeping-users] hping probe

* Seth Lyons<[email protected]>:

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
  [email protected] | http://www.charite.de


_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to