Re: [exim] sudo - iptables trick

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Johann Spies
Dátum:  
Címzett: exim-users
Tárgy: 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