Tâche #27878
Scénario #27995: Les entrées créées par la synchronisation lsc devraient être annotées
Les droits sur /var/log/lsc ne permettent pas d'écrire les fichiers status et ldif
100%
Description
Les droits sur /var/log/lsc ne permettent pas d'écrire les fichiers status et ldif.
La première écriture est faite en root. Ensuite, le démarrage de l'application LSC se fait en su avec le compte 'lsc', ... qui ne peut écrire dans le répertoire !
mettre un chown/chmod avec la copie du fichier lsc.xml
Voir : à partir de 2.6.2
Révisions associées
Fix rights on /var/log/lsc at service start
Ref: #27878
Historique
#1 Mis à jour par Joël Cuissinat il y a environ 5 ans
La 1ère synchro fonctionnelle est réalisée en root mais le service tourne en lsc :o
root@scribe:~# ll /var/log/lsc/ total 204 drwxr-xr-x 2 lsc lsc 4096 avril 12 21:58 ./ drwxrwxr-x 31 root syslog 4096 avril 16 06:25 ../ -rw-r--r-- 1 root root 146654 avril 15 17:46 lsc.ldif -rw-r--r-- 1 root root 40839 avril 16 04:49 lsc.log -rw-r--r-- 1 root root 1126 avril 16 04:49 lsc.status
#2 Mis à jour par Joël Cuissinat il y a environ 5 ans
- Tracker changé de Demande à Tâche
- Statut changé de Nouveau à En cours
- Assigné à mis à Joël Cuissinat
- Tâche parente mis à #27995
#3 Mis à jour par Joël Cuissinat il y a environ 5 ans
- Statut changé de En cours à Résolu
- % réalisé changé de 0 à 100
#4 Mis à jour par Gérald Schwartzmann il y a presque 5 ans
Après mise à jour en développement sur 2.7.1 : Maj-Auto -D
root@scribe:~# ll /var/log/lsc/ total 2036 drwxr-xr-x 2 lsc lsc 4096 mars 26 21:50 ./ drwxrwxr-x 35 root syslog 4096 mai 1 06:29 ../ -rw-rw-r-- 1 lsc lsc 506064 avril 2 16:53 lsc.ldif -rw-rw-r-- 1 lsc lsc 1556028 mai 3 15:32 lsc.log -rw-rw-r-- 1 lsc lsc 456 mai 3 15:32 lsc.status root@scribe:~#
root@scribe:~# tail -f /var/log/lsc/lsc.log 2019/05/10 03:01:30 [lsc] LSC finished running mai 10 03:01:32 - INFO - Logging configuration successfully loaded from /etc/lsc/logback.xml mai 10 03:01:32 - INFO - LSC configuration successfully loaded from /etc/lsc/ mai 10 03:01:32 - INFO - Configuration and environment successfully checked ! 2019/05/10 03:01:33 [lsc] Starting LSC 2019/05/10 03:01:33 [lsc] Using JMX port 1099 mai 10 03:01:36 - INFO - Logging configuration successfully loaded from /etc/lsc/logback.xml mai 10 03:01:36 - INFO - LSC configuration successfully loaded from /etc/lsc/ mai 10 03:01:36 - INFO - Connecting to LDAP server ldaps://addc.dompedago.etb1.lan:636/DC=dompedago,DC=etb1,DC=lan as CN=Administrator,CN=Users,DC=dompedago,DC=etb1,DC=lan mai 10 03:01:37 - INFO - Connecting to LDAP server ldap://localhost:389/o=gouv,c=fr as cn=admin,o=gouv,c=fr
root@scribe:~# /usr/bin/lsc -f /etc/lsc -s all -c all -t 1 mai 10 18:05:01 - INFO - Logging configuration successfully loaded from /etc/lsc/logback.xml mai 10 18:05:01 - INFO - LSC configuration successfully loaded from /etc/lsc/ mai 10 18:05:01 - INFO - Connecting to LDAP server ldaps://addc.dompedago.etb1.lan:636/DC=dompedago,DC=etb1,DC=lan as CN=Administrator,CN=Users,DC=dompedago,DC=etb1,DC=lan […]
root@scribe:~# tail -f /var/log/lsc/lsc.log mai 10 18:05:01 - INFO - LSC configuration successfully loaded from /etc/lsc/ mai 10 18:05:01 - INFO - Connecting to LDAP server ldaps://addc.dompedago.etb1.lan:636/DC=dompedago,DC=etb1,DC=lan as CN=Administrator,CN=Users,DC=dompedago,DC=etb1,DC=lan mai 10 18:05:03 - INFO - Connecting to LDAP server ldap://localhost:389/o=gouv,c=fr as cn=admin,o=gouv,c=fr mai 10 18:05:09 - INFO - All entries: 458, to modify entries: 0, successfully modified entries: 0, errors: 0
#5 Mis à jour par Gérald Schwartzmann il y a presque 5 ans
Création d'un nouvel utilisateur dans l'EAD
lsc.status OK
root@scribe:~# ll /var/log/lsc/ total 3268 drwxr-xr-x 2 lsc lsc 4096 mai 10 18:10 ./ drwxrwxr-x 35 root syslog 4096 mai 7 06:29 ../ -rw-rw-r-- 1 lsc lsc 604836 mai 10 18:09 lsc.ldif -rw-rw-r-- 1 lsc lsc 2717263 mai 10 18:10 lsc.log -rw-rw-r-- 1 lsc lsc 1114 mai 10 18:10 lsc.status root@scribe:~#
#6 Mis à jour par Gérald Schwartzmann il y a presque 5 ans
Sur Eole 2.6.2 après mise à jour et installation de scribe-ad
root@scribe:~# ll /var/log/lsc total 8 drwxr-xr-x 2 lsc lsc 4096 mai 20 17:18 ./ drwxrwxr-x 34 root syslog 4096 mai 20 17:18 ../ root@scribe:~#
après reconfigure :
root@scribe:~# ll /var/log/lsc total 76 drwxr-xr-x 2 lsc lsc 4096 mai 20 17:43 ./ drwxrwxr-x 35 root syslog 4096 mai 21 06:25 ../ -rw-r--r-- 1 root root 59967 mai 20 17:43 lsc.ldif -rw-r--r-- 1 root root 1997 mai 21 05:44 lsc.log -rw-r--r-- 1 root root 1074 mai 21 05:44 lsc.status root@scribe:~#
Maj-Auto -C + reconfigure
root@scribe:~# ll /var/log/lsc total 88 drwxr-xr-x 2 lsc lsc 4096 mai 20 17:43 ./ drwxrwxr-x 35 root syslog 4096 mai 21 06:25 ../ -rw-r--r-- 1 lsc lsc 72734 mai 21 09:30 lsc.ldif -rw-r--r-- 1 lsc lsc 2755 mai 21 09:30 lsc.log -rw-r--r-- 1 lsc lsc 420 mai 21 09:30 lsc.status root@scribe:~#
#7 Mis à jour par Gérald Schwartzmann il y a presque 5 ans
- Projet changé de eole-ad à Distribution EOLE
- Statut changé de Résolu à Fermé
- Restant à faire (heures) mis à 0.0