Forget your Calibre-Web administrator password? No problem! If you're running Calibre-Web via Docker, you can easily reset it using a command that specifies the app.db
file.
Resetting Your Calibre-Web Admin Password
Here's how to reset your admin password for Calibre-Web in a Docker environment:
-
Access your Docker container: Open your terminal or command prompt.
-
Execute the reset command: Use the following
docker exec
command. This command tells Docker to run a script inside your Calibre-Web container to reset the password.Bashdocker exec -it calibre-web /app/calibre-web/cps.py -p /config/app.db -s admin:yournewpassword
Explanation of the command:
docker exec -it calibre-web
: This part executes a command inside your running Docker container namedcalibre-web
. (If your container has a different name, replacecalibre-web
with its actual name.)/app/calibre-web/cps.py
: This is the path to the Python script within the Calibre-Web container that handles password resets.-p /config/app.db
: This crucial part specifies the path to your Calibre-Web database file (app.db
). This is where user credentials are stored. For most Docker installations, it's located at/config/app.db
inside the container.-s admin:yournewpassword
: This sets the password for theadmin
user. Replaceyournewpassword
with the actual new password you want to use.
Important Notes:
- Container Name: Double-check your Calibre-Web Docker container's name. You can find it by running
docker ps
. app.db
Path: The/config/app.db
path is standard for Calibre-Web Docker setups, but if you've customized your volumes, ensure this path correctly points to your database file within the container.- Choose a Strong Password: When setting
yournewpassword
, choose a strong, unique password for security.
After running this command, your administrator password for Calibre-Web will be reset to the new password you specified. You should then be able to log in to your Calibre-Web interface with the updated credentials.
沒有留言:
張貼留言