Projet

Général

Profil

Scénario #37541

droit de /var/lib/samba/private trop "ouverts" suite a restauration seth en 2.10

Ajouté par jl dubocs il y a 3 mois. Mis à jour il y a environ un mois.

Statut:
Terminé (Sprint)
Priorité:
Normal
Assigné à:
Catégorie:
-
Début:
06/07/2026
Echéance:
06/07/2026
% réalisé:

100%

Points de scénarios:
1.0
Restant à faire (heures):
0.00 heure
Estimation basée sur la vélocité:
Release:
Liens avec la release:
Auto

Description

Suite à migration d'un seth2.8.1 vers 2.10 avec le script migration210.sh et réinstallation, les droits du dossier /var/lib/samba/private sont beaucoup plus permissifs que sur la version 2.8.1
Un serveur seth 2.10 fraichement installé n'a pas ce problème.

À faire

  • vérifier/corriger le script de migration
  • vérifier les versions antérieures
  • vérifier les autres modules (Scribe, AmonEcole)
  • vérifier les autres procédues (Bareos, restauration manuelle, ...)

NB : un affichage a été ajouté dans les tests "migration2xy.sh*restauration"

Seth2.10.0 après restauration

cat /etc/eole/release
EOLE_MODULE=seth
EOLE_VERSION=2.10
EOLE_RELEASE=2.10.0
root@z-clg-xxxxy:~# ll /var/lib/samba/private/
total 13016
drwx------ 8 root root    4096 juil.  1 18:00 ./
drwxr-xr-x 9 root root    4096 juil.  1 18:00 ../
-rwxrwxrwx 1 root root    2866 juil.  2  2023 dns_update_cache
-rwxrwxrwx 1 root root    3663 juil.  2  2023 dns_update_list
-rwxrwxrwx 1 root root      16 juil.  2  2023 encrypted_secrets.key
-rwxrwxrwx 1 root root 1286144 juil.  2  2023 hklm.ldb
-rwxrwxrwx 1 root root 2519040 juil.  1 14:47 idmap.ldb
-rw-r--r-- 1 root root     309 juil.  1 15:03 krb5.conf
srwxrwxrwx 1 root root       0 juil.  1 18:00 ldapi=
drwxrwxrwx 2 root root    4096 juil.  1 18:00 ldap_priv/
drwxrwxrwx 2 root root    4096 juil.  1 14:48 managed_account/
drwxrwxrwx 2 root root   36864 juil.  1 13:59 msg.sock/
-rwxrwxrwx 1 root root    8888 juil.  1 18:00 netlogon_creds_cli.tdb
-rwxrwxrwx 1 root root  421888 août  18  2021 passdb.tdb*
-rwxrwxrwx 1 root root 1286144 juil.  2  2023 privilege.ldb
-rwxrwxrwx 1 root root 4694016 juil.  2  2023 sam.ldb*
drwxrwxrwx 2 root root    4096 juil.  2  2023 sam.ldb.d/
-rwxrwxrwx 1 root root   16384 juil.  2 13:08 schannel_store.tdb
-rwxrwxrwx 1 root root     950 juil.  2  2023 secrets.keytab
-rwxrwxrwx 1 root root 1286144 juil.  2  2023 secrets.ldb
-rwxrwxrwx 1 root root  430080 juil.  2  2023 secrets.tdb
-rwxrwxrwx 1 root root 1286144 juil.  2  2023 share.ldb
drwxrwxrwx 2 root root    4096 juil.  1 18:01 smbd.tmp/
-rwxrwxrwx 1 root root     955 juil.  2  2023 spn_update_list
drwxrwxrwx 4 root root    4096 juil.  2  2023 tls/

Sur fresh install seth2.10 sans restauration

/root@z-clg-xxxxw:~# ll /var/lib/samba/private/
total 12144
drwx------ 7 root root    4096 juil.  2 11:38 ./
drwxr-xr-x 8 root root    4096 juil.  2 11:38 ../
-rw------- 1 root root    2861 juil.  1 16:06 dns_update_cache
-rw-r--r-- 1 root root    3663 juil.  1 16:06 dns_update_list
-rw------- 1 root root      16 juil.  1 16:06 encrypted_secrets.key
-rw------- 1 root root 1286144 juil.  1 16:06 hklm.ldb
-rw------- 1 root root 1609728 juil.  2 14:08 idmap.ldb
-rw-r--r-- 1 root root     308 juil.  2 11:37 krb5.conf
srwxrwxrwx 1 root root       0 juil.  2 11:38 ldapi=
drwxr-x--- 2 root root    4096 juil.  2 11:38 ldap_priv/
drwxr-xr-x 2 root root    4096 juil.  1 16:08 managed_account/
-rw------- 1 root root    8888 juil.  2 11:38 netlogon_creds_cli.tdb
-rw------- 1 root root  421888 févr. 26 14:02 passdb.tdb
-rw------- 1 root root 1286144 juil.  1 16:06 privilege.ldb
-rw------- 1 root root 4739072 juil.  1 16:06 sam.ldb
drwx------ 2 root root    4096 juil.  1 16:06 sam.ldb.d/
-rw------- 1 root root   16384 juil.  2 15:44 schannel_store.tdb
-rw------- 1 root root     950 juil.  1 16:06 secrets.keytab
-rw------- 1 root root 1286144 juil.  1 16:06 secrets.ldb
-rw------- 1 root root  430080 juil.  1 16:06 secrets.tdb
-rw------- 1 root root 1286144 juil.  1 16:06 share.ldb
drwxr-xr-x 2 root root    4096 juil.  2 11:38 smbd.tmp/
-rw-r--r-- 1 root root     955 juil.  1 16:06 spn_update_list
drwxr-xr-x 4 root root    4096 juil.  1 16:03 tls/

merci d'avance
Jean-Louis Dubocs


Sous-tâches

Tâche #37544: gestions des droits pour samba/private/FerméLudwig Seys

Tâche #37545: testFerméBenjamin Bohard


Demandes liées

Lié à EOLE AD DC - Tâche #37091: Adapter migration.sh pour seth Fermé 01/10/2022

Révisions associées

Révision c6498f3e (diff)
Ajouté par Joël Cuissinat il y a 3 mois

migrationSh_restauration.sh : Affichage des droits sur /var/lib/samba/private

Ref: #37541

Historique

#1 Mis à jour par Joël Cuissinat il y a 3 mois

  • Description mis à jour (diff)

#2 Mis à jour par Joël Cuissinat il y a 3 mois

#3 Mis à jour par Joël Cuissinat il y a 3 mois

  • Description mis à jour (diff)

#4 Mis à jour par Joël Cuissinat il y a 3 mois

  • Description mis à jour (diff)

#5 Mis à jour par Joël Cuissinat il y a 3 mois

  • Tracker changé de Demande à Scénario
  • Début 03/07/2026 supprimé
  • Release mis à Carnet de produit Cadoles - MEN
  • Points de scénarios mis à 1.0

#6 Mis à jour par Joël Cuissinat il y a 3 mois

  • Description mis à jour (diff)

#7 Mis à jour par Laurent Gourvenec il y a 3 mois

  • Assigné à mis à Ludwig Seys

#8 Mis à jour par Ludwig Seys il y a 3 mois

  • Echéance mis à 01/01/2026
  • Assigné à Ludwig Seys supprimé
  • Version cible mis à Carnet Cadoles - MEN
  • Début mis à 01/10/2022

#9 Mis à jour par Ludwig Seys il y a 3 mois

  • Assigné à mis à Ludwig Seys

#10 Mis à jour par Joël Cuissinat il y a environ un mois

  • Statut changé de Nouveau à Terminé (Sprint)
  • Version cible changé de Carnet Cadoles - MEN à Livraison Cadoles - MEN 31/12/2025 (30)
  • Release changé de Carnet de produit Cadoles - MEN à EOLE 2.10.0

Formats disponibles : Atom PDF