Skip site navigation (1) Skip section navigation (2)

Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jamie Strachan <frostfreek(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql
Date: 2010-04-20 15:29:57
Message-ID: 201004201529.o3KFTvH21102@momjian.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Would you report this to the RPM maintainers?

---------------------------------------------------------------------------

Jamie Strachan wrote:
> 
> The following bug has been logged online:
> 
> Bug reference:      5430
> Logged by:          Jamie Strachan
> Email address:      frostfreek(at)yahoo(dot)com
> PostgreSQL version: 8.4.3-2PGDG.el4
> Operating system:   CentOS 4
> Description:        initdb fails due to permissions of /usr/share/pgsql
> Details: 
> 
> Hello,
> 
> Downloaded the following RPM:
> http://yum.pgsqlrpms.org/8.4/redhat/rhel-4-i386/postgresql-server-8.4.3-2PGD
> G.el4.i386.rpm
> 
> for my CentOS 4 install.
> 
> service postgresql initdb fails with no error message.
> 
> So, I su'd to postgres, and ran
> 
>    initdb --pgdata=/var/lib/pgsql/data --auth=ident
> which is what service postgresql initdb does.
> This command failed, with the error message:
> 
> could not open directory "/usr/share/pgsql/timezonesets"
> 
> 
> I did a 
> chown -R postgres:postgres /usr/share/pgsql
> and then it worked fine.
> 
> Using rpm2cpio {file} | cpio -tv
> I see:
> drwxr-xr-x   6 root     root            0 Mar 17 16:21 ./usr/share/pgsql
> which is fine, however there is no specific entry for
> /usr/share/timezone.
> The post-install script doesn't seem to fix it, either.
> 
> -- 
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

In response to

Responses

pgsql-bugs by date

Next:From: Jamie StrachanDate: 2010-04-20 15:49:05
Subject: Re: BUG #5430: initdb fails due to permissions of /usr/share/pgsql
Previous:From: Dave PageDate: 2010-04-20 15:24:25
Subject: Re: BUG #5429: Driver issue

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group