Re: Regarding initdb & pg_ctl

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Vikram Patil <vpatil(at)actuate(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Regarding initdb & pg_ctl
Date: 2009-09-14 11:27:54
Message-ID: 9837222c0909140427n56695ccycfb938cf5523ecad@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Sep 12, 2009 at 05:23, Vikram Patil <vpatil(at)actuate(dot)com> wrote:
> Hello Folks,
>
>
>
>        So I have following problem as I logged in Windows 2003 with
> domain\user. I am basically trying to create installer for postgres. So I
> need to keep in mind that  person who is going to install can be the one who
> is currently logged in.
>
>
>
> So I tried to change permissions on data directory so that initdb will run
> fine. I changed creator owner privileges to be read and execute using XACLS
> then ran initdb. It populated directory correctly  But when I used pg_ctl to
> start up service it failed saying
>
> “FATAL:  XX000: C:/Program Files/PostgreSQL/8.4/bin/postgres.exe: could not
> locate matching postgres executable
>
> , .\src\backend\postmaster\postmaster.c:1070 …”
>
>
>
> Please provide some inputs how to tackle with this permission issues. Thanks
> in advance

When you run pg_ctl, it will drop any privileges that is acquired
through administrator groups. Did you grant the permissions directly
to the postgres user account, and not through something that chains up
to Administrators or Domain Admins? Also, make sure this holds true
for the whole path up there.

If you did, then the next step is to run Process Monitor
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) during
the startup and see exactly which operation it is that fails. It is
probably trying to load a DLL somewhere it doesn't have permissions.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nathaniel 2009-09-14 11:55:43 Bulk read
Previous Message Cédric Villemain 2009-09-14 11:18:52 Re: Installing postgresql on Debian Lenny-->my /etc/apt/sources.list.