Projet

Général

Profil

Scénario #37541

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

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.

h3. À 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

<pre>
cat /etc/eole/release
EOLE_MODULE=seth
EOLE_VERSION=2.10
EOLE_RELEASE=2.10.0
</pre>

<pre>
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/
</pre>

Sur fresh install seth2.10 sans restauration

<pre>
/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/
</pre>

merci d'avance
Jean-Louis Dubocs

Retour