in sudoers, add a line like:
hobbituser ALL=(root) NOPASSWD: /path/to/fping
or even easier, change fping to setuid root (chown root /path/to/fping; chmod 4755 /path/to/fping)
=G=
From: Josh Luthman [user-4c45a83f15cb@xymon.invalid]
Sent: Tuesday, July 29, 2008 12:15 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Version of Hobbit y'all use?
I am using 4.2.0 stable, no patches for the office network and 4.2.0 all-in-one patch at home.
Here's what other people are using: http://en.wikibooks.org/wiki/The_hobbit_Users_list
On both my servers I got complaints about /var/log/messages not being readable (red, IIRC). Can't explain why it didn't complain for you, sorry.
I don't use sudo but I believe if you simply give the permissions of the "hobbit user" to read/execute /usr/sbin/fping you shouldn't have to worry about sudo when executing the command via Hobbitmon.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
On Tue, Jul 29, 2008 at 12:11 AM, Thomas Leavitt <user-9b8a669cb525@xymon.invalid<mailto:user-9b8a669cb525@xymon.invalid>> wrote:
Do y'all typically run the "stable" version of Hobbit, 4.2.0, downloaded from SourceForge, or do many of you run a more recent version?
I noticed that a permission failure on /var/log/messages doesn't produce a "yellow" on my version.
Anyone have proper SUDO settings that enable the hobbit server to run fping with no password, and the hobbit clients to read a root only readable /var/log/messages? Can you just run "fping" without putting "sudo" in front of the command, if you've got the proper settings in /etc/sudoers?
Thomas