[smokeping-users] remote user problem
alter3d at alter3d.ca
Tue Jul 19 15:40:44 CEST 2011
Use a wrapper script. Make a script that has something like 'sudo
/path/to/fping $*' as its only line, save it as
/usr/local/bin/fping-root.sh or something, then modify your remote probe
to use the wrapper instead of the fping binary.
Another possible option is to set the fping binary to suid root, unless
there are other users on the system that you don't want to have access
On 19/07/2011 9:13 AM, Glenn Andersson wrote:
> Yea im using the NOPASSWD flag at the moment but the problem is that smokeping itself doesnt send the sudo command to the remote machine.
> -----Original Message-----
> From: smokeping-users-bounces+glenn.andersson=axis.com at lists.oetiker.ch [mailto:smokeping-users-bounces+glenn.andersson=axis.com at lists.oetiker.ch] On Behalf Of Peter Kristolaitis
> Sent: den 19 juli 2011 14:53
> To: smokeping-users at lists.oetiker.ch
> Subject: Re: [smokeping-users] remote user problem
> Check the man page for the sudoers file. There is a flag called
> NOPASSWD that you can set on a user that means they will not be prompted
> for a password when executing privileged commands. There are some
> related gotchas to set it up properly though, so a read through the man page is highly recommended.
> Alternatively, script the password entry using expect. ;)
> - Peter
> On 19/07/2011 3:50 AM, Glenn Andersson wrote:
>> Well of course i can use sudo but the system will ask for password for every check, and that will make the check fail.
>> If someone else have a functional idea about sudo I will gladly listen
>> Best regards,
>> Glenn Andersson
>> -----Original Message-----
>> From: G.W. Haywood [mailto:ged at jubileegroup.co.uk]
>> Sent: den 14 juli 2011 11:07
>> To: Glenn Andersson
>> Cc: 'smokeping-users at lists.oetiker.ch'
>> (smokeping-users at lists.oetiker.ch)
>> Subject: Re: [smokeping-users] remote user problem
>> Hi there,
>> On Thu, 14 Jul 2011, Glenn Andersson wrote:
>>> I use my RemoteFPing probe to do an fping on another machine (in this
>>> case an OpenBSD machine). The problem is that fping can only be
>>> executed as root, so my question is if someone have made this work on
>>> their BSD machines?
>> Can you not use Sudo?
>> smokeping-users mailing list
>> smokeping-users at lists.oetiker.ch
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
More information about the smokeping-users