[Linux-HA] enabling another account to use cibadmin -Q

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Mon Sep 17 10:40:48 MDT 2007


Doug Knight wrote:
> Since the scripts are automated (i.e. running without a tty),  I cannot 
> use the /etc/sudoers file (which I have working as a command line execution).

may i correct you on that.

you can write something like:

> # User alias specification
> User_Alias  UNPRIV = raoul
> 
> # Cmnd alias specification
> Cmnd_Alias  NAGIOS = /etc/init.d/nagios
> 
> # User privilege specification
> UNPRIV  ALL=NOPASSWD: NAGIOS

and after the first initial acknowledge to the sudo disclaimer you are
set to invoke sudo without tty, via crontab, etc.

cheers,
raoul bhatia
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________


More information about the Linux-HA mailing list