[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rkhunter avec crontab



On Wed, Oct 09, 2013 at 04:27:46PM CEST, "a.lb" <alain.lebigot@dbmail.com> said:
> Bonjour,
> kde avec wheezy à jour.
> Lorsque je lance la commande :"/usr/bin/rkhunter -c" dans une console ça fonctionne mais pas quand je mets:
> 15 15 * * * /usr/bin/rkunter -c dans crontab en root.
> Je reçois ce message d'erreur:
> /usr/bin/rkhunter: 1: /usr/bin/rkhunter: grep: not found
> The command 'egrep' must be present on the system in order to run rkhunter.
> The command 'grep' must be present on the system in order to run rkhunter.
> The command 'sed' must be present on the system in order to run rkhunter.
> alors qu'après vérifications j'ai bien egrep,grep,et sed d'installés.
> Je comprends pas pourquoi ça fonctionne dans une console mais pas avec la même ligne de commande dans crontab?
> merci. 

Dans un cron l'environnement est minimal,en particulier le PATH est réduit à sa plus simple expression.

Par contre vous pouvez définir le PATH à utiliser au début de la crontab.

Voir man 5 crontab pour avoir toutes les précisions.


Reply to: