Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied
Date: Thu, 15 Dec 2011 23:11:56
Message-Id: CAA2qdGWCCkpVR8kAPmS2fnVeRmraRxemfE9=u=umt4k36cb6XQ@mail.gmail.com
In Reply to: Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied by Pandu Poluan
1 On Dec 16, 2011 5:49 AM, "Pandu Poluan" <pandu@××××××.info> wrote:
2 >
3 >
4 > On Dec 16, 2011 5:46 AM, "Pandu Poluan" <pandu@××××××.info> wrote:
5 > >
6 > >
7 > > On Dec 15, 2011 8:52 PM, "Joseph" <syscon780@×××××.com> wrote:
8 > > >
9 > > > On 12/15/11 16:11, Pandu Poluan wrote:
10 > > >>
11 > > >>
12 > > >> Hmmm...
13 > > >>
14 > > >> Have you GRANT the 'sql-ledger' user the CONNECT privilege to the
15 > > >> database?
16 > > >>
17 > > >> Rgds,
18 > > >
19 > > >
20 > > > After installing postgresql I run:
21 > > > emerge --config =dev-db/postgresql-server-9.1.1
22 > > >
23 > > > started postgresql-9.1
24 > > > # su - postgres
25 > > > postgres@syscon5 ~ $ createuser -d sql-ledger
26 > > > y
27 > > > y
28 > > > exit
29 > > >
30 > > > that was it.
31 > > >
32 > > > # psql -U postgres -l
33 > > > List of databases
34 > > > Name | Owner | Encoding | Collate | Ctype |
35 Access privileges
36 -----------+----------+----------+-------------+-------------+-----------------------
37 > > > postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
38 template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
39 +
40 > > > | | | | |
41 postgres=CTc/postgres
42 > > > template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
43 =c/postgres +
44 > > > | | | | |
45 postgres=CTc/postgres
46 > > > --
47 > > > Joseph
48 > > >
49 > >
50 > > Okay, according to the documentation on GRANT, "=c/postgres" means the
51 public is granted "CONNECT" privilege, granted by the user postgres. So no
52 problem there.
53 > >
54 > > Hmm... wonder what's wrong...
55 > >
56 >
57 > Okay, I'm grasping at straws currently... how does the offending line in
58 admin.pl look like?
59 >
60 > Rgds,
61
62 Some thoughts : if the line is correct, the problem might be in how you
63 configured Apache. Here's a reference :
64
65 http://cpanforum.com/threads/1268
66
67 Rgds,

Replies

Subject Author
Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied Joseph <syscon780@×××××.com>