why NRPE can't run whit root user ?

Jason Martin jhmartin at toger.us
Mon Mar 22 17:27:30 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It would be a better idea do have the plugin execute 'sudo' to do 
whatever privileged operation it needs to do.

- -Jason Martin

On Mon, 22 Mar 2004, 
Bill Corcoran wrote:

> if you can only run the plugin with root priv, consider running it 
> setuid root.  i'm not sure if nagios has some sort of protection against 
> this, but it is probably what i would try.  running apache suexec may 
> give you some problems too, but again, worth a shot.
> 
> as root, do a chown root on the file, then chmod 4755 or 6755.  consult 
> the man pages on chmod for more info.  then, when anyone executes the 
> plugin, the plugin will run as root.
> 
> -bill
> 
> 
> LEBRETON Philippe wrote:
> > hello,
> > 
> > I want to run NRPE with the root user but it is impossible.
> > I want to run NRPE with the root user because, i write some somme plugin
> > that can only work with this user.
> > My question is : how i can exec this plugin with a root rights?
> > 
> > thanks
> > 
> > Philippe LEBRETON
> > 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > ::: Please include Nagios version, plugin version (-v) and OS when 
> > reporting any issue. ::: Messages without supporting info will risk 
> > being sent to /dev/null
> > 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQFAXxP5l2ODWuqVSBMRAhxgAJ9myDGIRK9V0OQ8025XxXY/MY3O1ACfeleZ
ncEw0c/3Lf6RPWx+8AWEsY8=
=riZM
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list