Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting pgAdmin III with stored passwords asks for password again

Starting pgAdmin III on kubuntu with stored password asks for password every time connecting to database giving error "Error connecting to the server: fe_sendauth: no password supplied". It ignores checkbox in store password field.

like image 650
icebreaker Avatar asked Aug 17 '13 11:08

icebreaker


People also ask

Where does pgadmin4 store passwords?

pgAdmin can store encrypted PostgreSQL server passwords in a local SQLite database if the user chooses to do so. The master password serves as the encryption key for the stored passwords. Previously, pgAdmin used to encrypt/decrypt all saved passwords using a key which is stored in the same SQLite database.

What is the default pgAdmin password?

By Default, the user is 'postgres' and the password is the one which you enter while installing the database. (Version 11,12 I have tested). and enter the password used while installing. Or create a user with login permissions using PgAdmin tool.

Where are postgres passwords stored?

PostgreSQL database passwords are separate from operating system user passwords. The password for each database user is stored in the pg_authid system catalog. Passwords can be managed with the SQL commands CREATE ROLE and ALTER ROLE, e.g., CREATE ROLE foo WITH LOGIN PASSWORD 'secret' , or the psql command \password .


1 Answers

I found reason for this in Postgresql mailing lists. Problem is when file /home/user/.pgpass has permisions more than u=rw 0600 pgAdmin ignores the file. Changing permisions for file resolves problem.

like image 156
icebreaker Avatar answered Nov 03 '22 21:11

icebreaker