From 3705eaf3952c5347857970ecd4ba8a632025d66c Mon Sep 17 00:00:00 2001 From: whirigoyen Date: Tue, 16 Jan 2024 14:30:14 +0100 Subject: [PATCH] Ajout section ajouter un utilisateur admin --- HowtoMatomo.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/HowtoMatomo.md b/HowtoMatomo.md index 45df518a..69a21866 100644 --- a/HowtoMatomo.md +++ b/HowtoMatomo.md @@ -49,6 +49,21 @@ Pour augmenter d'un cran le niveau de sécurité, on ajoute dans `/home/matomo/w force_ssl = 1 ~~~ + +### Ajouter un utilisateur admin + +Si on est bloqué, on peut insérer un nouvel utilisateur admin dans la base avec un mot de passe temporaire (à changer après la première connexion) : + +~~~ +$ php -r 'echo password_hash(md5(), PASSWORD_DEFAULT) . "\n";' +$2y$10$v2HBGALslnw5ZeRaQDpon.xmQOZcRpxkYkrvlTs41j2F.THyLQhn6 + +$ mysql +MariaDB [(none)]> use matomo; +MariaDB [matomo_prod]> INSERT INTO `matomo_user` (login, password, email, superuser_access) VALUES ('', '', '', 1); +~~~ + + ### Activer l'archivage Désactiver l'archivage via l'interface web dans : *administration (roue cranté)* -> *Système* -> *paramètres généraux* -> *Paramètres d'archivage* -> mettre sur *Non*