diff --git a/docs/admin/resources/common-issues.md b/docs/admin/resources/common-issues.md index 512ca6e1..4cf7e962 100644 --- a/docs/admin/resources/common-issues.md +++ b/docs/admin/resources/common-issues.md @@ -73,4 +73,25 @@ This can pose a security risk in shared or multi-user environments. Make sure to ::: -Ensure you apply this to all relevant folders that are mounted into your containers. This will grant the Docker container the necessary permissions to access and write to these directories. \ No newline at end of file +Ensure you apply this to all relevant folders that are mounted into your containers. This will grant the Docker container the necessary permissions to access and write to these directories. + +--- + +### Change Admin-Passwort in .env file + +If you set an admin password in the .env file during the initial setup of OpenCloud, you CANNOT simply change it in the file again.
+There are two ways to change the password: + +#### 1. Web UI +The admin can change the password in the web UI if the admin password is known. +If the password is unknown or the user does not want to make the change in the web UI, there is still the option via the terminal. + +#### 2. Terminal +If the admin password has been forgotten or you want to make the change via the terminal, you must enter the following command in the terminal to reset the password: + +**Example for Docker:** +```bash +sudo docker run -it --rm \ -v < opencloud-data-path>:/var/lib/opencloud \ -v :/etc/opencloud \ opencloudeu/opencloud: idm resetpassword +``` + +Once the command has been successfully executed in the terminal and the password has been reset, it can be reassigned in the .env file. \ No newline at end of file