If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > FATAL: password authentication failed for user "abc"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-09, 10:16
pelite pelite is offline
Registered User
 
Join Date: Nov 2009
Posts: 2
FATAL: password authentication failed for user "abc"

This subject is already discussed but I could not find a resolution for my problem, so I have to ask help again.

What I would like:
- I put my new PostgreSql DB from my Linux WEB box to another Linux box. Idea is to give access to this new DB from WEB box for one user;
web_ip_addr- WEB server IP (from where a user comes);
web_user - a user account for access to the new DB from WEB box
db_name - a database name

- to restrict access I added a line in pg_hba.conf

host db_name web_user web_ip_addr/32 md5

- I created a role web_user in the new DB from PgAdmin and set a password.

Mostly I got 'password authentication failed' with md5 method. No problems when the method is trust. Some times it works as supposed but just for couple times. Then it switches back to 'failed' message. I played around with settings but could not solve the problem.

I would really appreciate if somebody could give some ideas what's wrong.
Thanks in advance!

Reply With Quote
Reply With Quote
  #2 (permalink)  
Old 11-04-09, 13:09
artacus72 artacus72 is offline
Registered User
 
Join Date: Aug 2009
Location: Olympia, WA
Posts: 337
What do your logs say?
Reply With Quote
  #3 (permalink)  
Old 11-08-09, 09:04
pelite pelite is offline
Registered User
 
Join Date: Nov 2009
Posts: 2
Some data from Log files

Here is data from PostgreSQL log file. Nothing useful just the same as PHP error message. Also no info in Apache log files


2009-11-08 15:06:51 EETLOG: database system was shut down at 2009-11-08 15:06:47 EET
2009-11-08 15:06:51 EETLOG: autovacuum launcher started
2009-11-08 15:06:51 EETLOG: database system is ready to accept connections
2009-11-08 15:06:56 EETFATAL: password authentication failed for user "mahura"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On