Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D3CFA6515F7 for ; Mon, 23 Jun 2008 20:23:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 76166-03 for ; Mon, 23 Jun 2008 20:23:48 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by postgresql.org (Postfix) with ESMTP id 03EF46514DA for ; Mon, 23 Jun 2008 20:23:52 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so9724865rvf.43 for ; Mon, 23 Jun 2008 16:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=TtDmywy+BOAArNKiBcU7uu6TJvEzPLOgKKbgAunve3s=; b=tiA53npL7IsX2BhSabyRDggGwS8oWMdWyjSVbsD8fX+1Z4iLkBw/c+Ks6bS0WMAFIk 8lcay30Fnc8d9kIWeVvEGphmDKqXXv3kP2mUJ2tz5sClUMwSS2MbiWdLJULhyP//18kx 3NtNGwgLZ1cMuXqtR66yND0L0CMajzt1m0dH0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ElQq1irwfjhfkJ3jhyweW3ln2bs999vhayiiU4wOHlxy2ISw929gP/lTX3UmofwNun 4IqbtazqsG0Sl9BJqzq1G2kPLk4jRg9M+Sx6SYUBdfB1szD1xEjOh6uzVpnO2STzYg27 zniJCHQS1ojV6P+PTEX7S4dxiA+N4+gmi7nrg= Received: by 10.140.164.1 with SMTP id m1mr13589816rve.69.1214263431519; Mon, 23 Jun 2008 16:23:51 -0700 (PDT) Received: by 10.114.180.17 with HTTP; Mon, 23 Jun 2008 16:23:51 -0700 (PDT) Message-ID: Date: Mon, 23 Jun 2008 17:23:51 -0600 From: "Scott Marlowe" To: "James Colannino" Subject: Re: Can't connect from any system account other than postgres Cc: pgsql-admin@postgresql.org In-Reply-To: <48602A9D.3000004@eracks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48602A9D.3000004@eracks.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/196 X-Sequence-Number: 29534 On Mon, Jun 23, 2008 at 4:58 PM, James Colannino wrote: > Hey everyone. I hope you'll forgive this most likely stupid question, but > I'm having trouble connecting to a postgresql database when on any system > account other than postgres. > > I understand that the way my PostgreSQL installation is setup, the account > postgres functions as a trusted account that will allow me to run psql > without a password. However, after I've setup an initial database, user and > password (the database is set to belong to this user), when I try to run the > command psql -d database -U username -W, after entering the password, I'm > told that authentication failed. Let me guess, it says something about ident authentication failed, right? Take a look here: http://www.postgresql.org/docs/8.3/interactive/client-authentication.html This section has been moved for future versions of the docs, but it's still in a kind of "too later to save you" position for now.