Taille: 710
Commentaire:
|
Taille: 1097
Commentaire: synchro passwd/mysql
|
Texte supprimé. | Texte ajouté. |
Ligne 1: | Ligne 1: |
= Création base de donneés = |
|
Ligne 26: | Ligne 28: |
= Synchro /etc/{passwd,shadow} avec mysql = modification de admincomptes pour insérer des appels à [http://trac.sn.auf.org/guia/browser/contrib/migrations/auth-sql/import-passwd import-passwd] aux endroits appropriés. cf. [http://trac.sn.auf.org/guia/browser/contrib/migrations/auth-sql/LISZEMOI.txt LISEZMOI.txt] pour l'utilisation du machin. |
Création base de donneés
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 to server version: 4.0.24_Debian-10sarge2-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database authnss; Query OK, 1 row affected (0.02 sec) mysql> grant select on authnss.* to nss@'%' identified by 'xxxxx'; Query OK, 0 rows affected (0.00 sec) mysql> use authnss; Database changed mysql> source /root/auth.sql Query OK, 0 rows affected (0.00 sec) Query OK, 0 rows affected (0.00 sec) Query OK, 0 rows affected (0.01 sec)
Modifs du /etc/mysql/my.cnf ::
- écouter sur le réseau
- activer log mysql.log, virer /var/log/mysql/mysql-bin.log
Synchro /etc/{passwd,shadow} avec mysql
modification de admincomptes pour insérer des appels à [http://trac.sn.auf.org/guia/browser/contrib/migrations/auth-sql/import-passwd import-passwd] aux endroits appropriés. cf. [http://trac.sn.auf.org/guia/browser/contrib/migrations/auth-sql/LISZEMOI.txt LISEZMOI.txt] pour l'utilisation du machin.