pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: vivek K. <vivek10@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: No pg_hba.conf entry
Date: Fri, 14 Feb 2003 13:38:20 +0530
Message-ID: <F57bpH71yEXUIEAOeIi00003078@hotmail.com> (raw)

<html><div style='background-color:'><DIV>
<DIV>find your postgresql.conf file, look in there to make sure tcpip_socket<BR>= true.<BR><BR>the directory that file is in should be the same as the $PGDATA that<BR>your getting asked for, so you'll be able to do <BR><BR>pg_ctl -D /path/to/database status<BR><BR>Robert Treat&nbsp; <BR></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV>Hello All,</DIV>
<DIV>&nbsp;Thanks to Robert. I have set the above things but SQL-ledger is giving different error this time like :</DIV>
<DIV>FATAL 1: No pg_hba.conf entry for host 192.168.168.56, user sql-ledger, database template1</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; I am using the preinstalled Postgres DB that came along with the default RH Linux Installation. I did not install externally.( so the path will be /usr/bin./usr/lib)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have set the variables as suggested in the postgressql.conf file. But i am now getting this error.</DIV>
<DIV>$ pg_ctl&nbsp; -D&nbsp; /usr/lib/pgsql start<BR>postmaster successfully started<BR>bash-2.05a$ FATAL 1:&nbsp; data directory /usr/lib/pgsql has group or world access; p<BR>ermissions should be u=rwx (0700)&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>and also</DIV>
<DIV>bash-2.05a$ initdb<BR>The files belonging to this database system will be owned by user "postgres".<BR>This user must also own the server process.</DIV>
<DIV>initdb: The directory /usr/lib/pgsql exists but is not empty.<BR>If you want to create a new database system, either remove or empty<BR>the directory /usr/lib/pgsql or run initdb with<BR>an argument other than /usr/lib/pgsql.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>I have set PGDATA&nbsp;=/usr/lib/pgsql and there is no directory by name data. Should i create a new Directory by name data and initialise this. Please advice.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank and regards,</DIV>
<DIV>Vivek</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></div><br clear=all><hr>Help STOP SPAM with <a href="http://g.msn.com/8HMEEN/2731">the new MSN 8 </a> and get 2 months FREE*</html>



view thread (2+ messages)  latest in thread

Message-ID: <F57bpH71yEXUIEAOeIi00003078@hotmail.com>
Permalink:  ../F57bpH71yEXUIEAOeIi00003078@hotmail.com/
Also on:    postgresql.org/message-id/F57bpH71yEXUIEAOeIi00003078@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: vivek10@hotmail.com
  Subject: Re: No pg_hba.conf entry
  In-Reply-To: <F57bpH71yEXUIEAOeIi00003078@hotmail.com>
  References: <F57bpH71yEXUIEAOeIi00003078@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox