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. [EMAIL PROTECTED] Technischer Leiter IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. [EMAIL PROTECTED] 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________ _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
