Cela vient de ici
Maintenant, il s'exécute, mais quand je l'exécute en utilisant la crontab root, il me dit :
*tail: /var/log/backupeitor.log: file truncated
/bin/sh: /home/backup/scripts/backupeitor.pl: Permission denied*
Permissions pour le fichier :
*srv156:/home/backup/scripts$ ls -alrt
insgesamt 28
drwxrwxrwx 2 root root 4096 19. Sep 13:23 off
-rwxrwxrwx 1 root root 1274 24. Okt 15:16 backup_mysql.sh
-rwxrwxrwx 1 root root 302 24. Okt 15:16 backup_postgres.sh
drwxrwxrwx 5 root root 4096 18. Dez 14:55 ..
drwxrwxrwx 3 root root 4096 20. Dez 09:48 .
-rwxrwxrwx 1 root root 3393 20. Dez 22:49 backupeitor.pl
srv156:/home/backup/scripts$*
Une idée ?
2 votes
Avoir des permissions de 777 (rwxrwxrwx) est une mauvaise idée. Ce n'est pas lié à votre erreur, mais n'importe quel autre utilisateur ou service sur ce système pourrait arbitrairement modifier ces scripts pour faire ce qu'ils veulent, ce qui serait ensuite exécuté par root.