Re: [exim] sudo - iptables trick

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Johann Spies
日付:  
To: exim-users
題目: Re: [exim] sudo - iptables trick

> Thanks for your help. What would be a more restrictive example?
>


I use the following to allow nagios to determine free space and length
of the mail queue:

nagios ALL = NOPASSWD: /usr/local/bin/telq, /bin/df

where /usr/local/bin/telq consists of:

#!/bin/bash

/usr/sbin/exim4 -bpc

With this configuration nagios cannot do anything else using sudo.

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch


     "For by grace are ye saved through faith; and that not 
      of yourselves; it is the gift of God, not of works, 
      lest any man should boast."   Ephesians 2:8,9