Merge pull request #11 from broedli/master
Added missing TFA section
Dieser Commit ist enthalten in:
Commit
87770f5449
1 geänderte Dateien mit 11 neuen und 6 gelöschten Zeilen
|
@ -7,12 +7,6 @@ cd mailcow_path
|
|||
bash mailcow-reset-admin.sh
|
||||
```
|
||||
|
||||
## Remove Two-Factor Authentication
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
## Reset MySQL Passwords
|
||||
|
||||
Stop the stack by running `docker-compose stop`.
|
||||
|
@ -26,6 +20,8 @@ docker-compose run --rm --entrypoint '/bin/sh -c "gosu mysql mysqld --skip-grant
|
|||
### 1\. Find database name
|
||||
|
||||
```
|
||||
# source mailcow.conf
|
||||
# docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME}
|
||||
MariaDB [(none)]> show databases;
|
||||
+--------------------+
|
||||
| Database |
|
||||
|
@ -57,3 +53,12 @@ MariaDB [(none)]> UPDATE mysql.user SET authentication_string = PASSWORD('gotr00
|
|||
MariaDB [(none)]> UPDATE mysql.user SET authentication_string = PASSWORD('mookuh'), password = PASSWORD('mookuh') WHERE User = 'mailcow' AND Host = '%';
|
||||
MariaDB [(none)]> FLUSH PRIVILEGES;
|
||||
```
|
||||
|
||||
## Remove Two-Factor Authentication
|
||||
|
||||
This works similar to resetting a MySQL password, now we do it from the host without connecting to the MySQL cli:
|
||||
|
||||
```
|
||||
source mailcow.conf
|
||||
docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e DELETE FROM tfa WHERE username='YOUR_USERNAME'
|
||||
```
|
||||
|
|
Laden …
In neuem Issue referenzieren