Tâche #8522
Distribution EOLE - Scénario #9345: Vérification de la sauvegarde complète sans Zéphir
Erreur Bacula Eole 2.4 : Mot de passe demandé
Description
Bonjour,
Après migration 2.2 ->2.4 et application du script baculaconfig.py (demande #8481), une nouvelle erreur apparaît (mot de passe) :
01-Jul 11:03 127.0.0.1-dir JobId 1: Warning: FileSet MD5 digest not found.
01-Jul 11:03 127.0.0.1-dir JobId 1: shell command: run BeforeJob "sudo /usr/share/eole/sbin/baculaconfig.py --lock --daemon=127.0.0.1-dir --jobID=1 --backup_progress --jobType=cronpre"
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: Sorry, try again.
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: Sorry, try again.
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: Sorry, try again.
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: 3 incorrect password attempts
01-Jul 11:03 127.0.0.1-dir JobId 1: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1
01-Jul 11:03 127.0.0.1-dir JobId 1: Error: Bacula 127.0.0.1-dir 5.2.5 (26Jan12):
Merci pour votre aide,
Philippe Michel
Related issues
Associated revisions
templatiser le fichier sudoers dès que bacula est activé (fixes #8522 @1h)
History
#1 Updated by Joël Cuissinat almost 7 years ago
- Status changed from Nouveau to En attente d'informations
- Estimated time set to 1.00 h
Normalement, le template "bacula.sudoers" (renommé en /etc/sudoers.d/bacula) évite ce problème.
Votre fichier /etc/sudoers.d/bacula contient-il bien ce qui suit ?
bacula ALL=NOPASSWD : /usr/share/eole/sbin/baculaconfig.py bacula ALL=NOPASSWD : /usr/share/eole/sbin/baculamount.py
La commande suivante vous demande-t-elle un mot de passe ?
su bacula -s /bin/bash -c "sudo /usr/share/eole/sbin/baculaconfig.py -d"
#2 Updated by Joël Cuissinat almost 7 years ago
- Project changed from Scribe to eole-bacula
#3 Updated by Benjamin Bohard over 6 years ago
Le fichier de sudoer pour bacula est associé à la "filelist" bacula_sd.
Dans le cas où le sd n'est pas activé, ce fichier n'est pas copié dans /etc/sudoers.d
Il faudrait une liste commune pour installer ce fichier (qui contient des règles utiles pour bacula-dir comme bacula-sd) dans tous les cas.
L'une des règles est, de toute façon, n'est active que si la variable activer_bacula_sd est à oui.
#4 Updated by Emmanuel GARETTE over 6 years ago
- Parent task set to #9345
#5 Updated by Joël Cuissinat over 6 years ago
- Status changed from En attente d'informations to Nouveau
- Remaining (hours) set to 1.0
#6 Updated by Emmanuel GARETTE over 6 years ago
- Status changed from Nouveau to Résolu
- Start date set to 12/04/2014
- % Done changed from 0 to 100
Appliqué par commit eeb1762be61250fcc59dacc6e0d8454b27444734.
#7 Updated by Emmanuel GARETTE over 6 years ago
- Due date set to 12/05/2014
- Assigned To set to Emmanuel GARETTE
- Remaining (hours) changed from 1.0 to 0.25
#8 Updated by Fabrice Barconnière over 6 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 0.25 to 0.0
#9 Updated by Fabrice Barconnière over 6 years ago
- Status changed from Fermé to Reporté