Skip to content

Instantly share code, notes, and snippets.

@acanakoglu
Last active November 2, 2023 17:05
Show Gist options
  • Save acanakoglu/aa3422c5b9e47718178ffa68ebc27be7 to your computer and use it in GitHub Desktop.
Save acanakoglu/aa3422c5b9e47718178ffa68ebc27be7 to your computer and use it in GitHub Desktop.
How to disable master password of pgadmin4
Open file below, tested with the version 4.17 and 4.18:
/Applications/pgAdmin\ 4.app/Contents/Resources/web/config.py
and then find the line contains: "MASTER_PASSWORD_REQUIRED" and change the parameter into "False"
Note: The folder location for Windows is in the comments.
@acanakoglu
Copy link
Author

@LordEvron, thank you very much for your contribution.

FOR WINDOWS USERS
Documentation on pgadmin is useless so they do not document where they store the config.py file, making me lose 1 hour trying to find its location:
Here is the location of the config.py file in windows :

C:\Users\AppData\Local\Programs\pgAdmin 4\v5\web\config.py

Then change the MASTER_PASSWORD_REQUIRED to False.

Restart PGADMIN.

@blaasvaer
Copy link

This does not work on Mac (Catalina 10.15.6)!

pgAdmin 4 Version 5.6 (4280.88)

@kenhaley
Copy link

kenhaley commented Apr 7, 2022

FOR WINDOWS USERS (in addition to LordEvron's remarks):
If you installed pgAdmin 4 for all users, config.py will be found here:
C:\Program Files\pgAdmin 4\v6\web (v6 is for version 6; adjust if you have a different version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment