Xymon Mailing List Archive search

xymon & fping

4 messages in this thread

list Frank M. Ramaekers · Wed, 12 Dec 2018 16:12:33 +0000 ·
[xymon at xxxxxxxx ~]$ fping yyyyyyyy
fping: can't create raw socket (must run as root?) : Operation not permitted
[xymon at xxxxxxxx ~]$ ls -lh /usr/local/sbin/fping
-rwxr-xr-x. 1 root root 87K Jul 24 12:28 /usr/local/sbin/fping

What should I do to correct this (best solution)?

Found this, but not sure it applies to xymon:

chown root:zzzzzzzz /usr/sbin/fping


chmod 710 /usr/sbin/fping


chmod ug+s /usr/sbin/fping


Frank M. Ramaekers Jr.


This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at user-54fd27234486@xymon.invalid.
list John Thurston · Wed, 12 Dec 2018 07:48:13 -0900 ·
You don't say what operating system you are running, but I'll share what 
was required of me on Solaris:
   chmod u+s /opt/csw/sbin/fping*

which has resulted in:
   -rwsr-xr-x   1 root     bin          36K Mar 11  2014 fping

I think I lifted this from:
   http://xymon.sourceforge.net/xymon/help/install.html

--
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
quoted from Frank M. Ramaekers

On 12/12/2018 7:12 AM, Frank M. Ramaekers wrote:
[xymon at xxxxxxxx ~]$ fping yyyyyyyy

fping: can't create raw socket (must run as root?) : Operation not permitted

[xymon at xxxxxxxx ~]$ ls -lh /usr/local/sbin/fping

-rwxr-xr-x. 1 root root 87K Jul 24 12:28 /usr/local/sbin/fping

What should I do to correct this (best solution)?

Found this, but not sure it applies to xymon:

	

chownroot:zzzzzzzz /usr/sbin/fping
chmod710 /usr/sbin/fping
chmodug+s /usr/sbin/fping
list Paul Root · Wed, 12 Dec 2018 16:48:33 +0000 ·
You should only need to set the sticky bit for the user.

Using the method below, your xymon user would need to be in the group that owns fping. You show it as zzzzzzzzz.

What these commands would do is disallow anyone not in the group from using the command at all. And it would give the user root permissions to resources, i.e. the raw socket, to the user.
quoted from Frank M. Ramaekers

From: Xymon <xymon-bounces at xymon.com> On Behalf Of Frank M. Ramaekers
Sent: Wednesday, December 12, 2018 10:13 AM
To: xymon at xymon.com
Subject: [Xymon] xymon & fping

[xymon at xxxxxxxx ~]$ fping yyyyyyyy
fping: can't create raw socket (must run as root?) : Operation not permitted
[xymon at xxxxxxxx ~]$ ls -lh /usr/local/sbin/fping
-rwxr-xr-x. 1 root root 87K Jul 24 12:28 /usr/local/sbin/fping

What should I do to correct this (best solution)?

Found this, but not sure it applies to xymon:

chown root:zzzzzzzz /usr/sbin/fping


chmod 710 /usr/sbin/fping


chmod ug+s /usr/sbin/fping


Frank M. Ramaekers Jr.


This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at user-54fd27234486@xymon.invalid<mailto:user-54fd27234486@xymon.invalid>.
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Frank M. Ramaekers · Wed, 12 Dec 2018 17:28:46 +0000 ·
Very similar, CenfOS (CentOS) 7.5:
cat /etc/redhat-release
CentOS Linux release 7.5.1804 (AltArch)

Frank M. Ramaekers Jr.
quoted from John Thurston

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of John Thurston
Sent: Wednesday, December 12, 2018 10:48 AM
To: xymon at xymon.com
Subject: Re: [Xymon] xymon & fping

You don't say what operating system you are running, but I'll share what was required of me on Solaris:
   chmod u+s /opt/csw/sbin/fping*

which has resulted in:
   -rwsr-xr-x   1 root     bin          36K Mar 11  2014 fping

I think I lifted this from:

   https://urldefense.proofpoint.com/v2/url?u=http-3A__xymon.sourceforge.net_xymon_help_install.html&d=DwIGaQ&c=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts&r=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ&m=Ayb5DW1GZv2CLaqXNRLKSQej0NRwAAggt75S6pN_U3w&s=5nGW0vI_8zcJ4TCUQS6IpO5TKub3RIUBJU75HVGT1j0&e=
quoted from Paul Root

--
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska

On 12/12/2018 7:12 AM, Frank M. Ramaekers wrote:
[xymon at xxxxxxxx ~]$ fping yyyyyyyy

fping: can't create raw socket (must run as root?) : Operation not 
permitted

[xymon at xxxxxxxx ~]$ ls -lh /usr/local/sbin/fping

-rwxr-xr-x. 1 root root 87K Jul 24 12:28 /usr/local/sbin/fping

What should I do to correct this (best solution)?

Found this, but not sure it applies to xymon:

	
chownroot:zzzzzzzz /usr/sbin/fping
chmod710 /usr/sbin/fping
chmodug+s /usr/sbin/fping
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwIGaQ&c=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts&r=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ&m=Ayb5DW1GZv2CLaqXNRLKSQej0NRwAAggt75S6pN_U3w&s=aEPfRkptYTRrEjbY9dxhtkfc8C9ex9lhrc3MzHj9xyg&e=
quoted from Paul Root

This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at user-54fd27234486@xymon.invalid.