pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yong Zhang <yzhang@trinityusa.com>
To: Dave Page <dpage@pgadmin.org>
Cc: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #9531: Failed to install
Date: Thu, 13 Mar 2014 14:28:47 -0000
Message-ID: <29FE3458A4A2B6419D1558999668038F014ED526@usmail.trinitybiotech.com> (raw)
In-Reply-To: <CA+OCxoy_Cn8KkvbvJs1uGzqCVe5Ng=yu+8vVbYgEC3ef=qFHzg@mail.gmail.com.1394713475.36>
References: <20140311163007.1230.6521@wrigleys.postgresql.org>
	<CANFyU96iD-d=ktOsZh_HtGfWMcVh8f0swygxtN6AOd3hHxAnqA@mail.gmail.com>
	<29FE3458A4A2B6419D1558999668038F0149B845@usmail.trinitybiotech.com>
	<CA+OCxoy_Cn8KkvbvJs1uGzqCVe5Ng=yu+8vVbYgEC3ef=qFHzg@mail.gmail.com.1394713475.36>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

You're correct. The installer script doesn't try to change ownership directly. But it does it in an indirect way via initdb.exe. Here is what I got when I ran initdb.exe in the command window:


"C:\Program Files (x86)\PostgreSQL\9.1\bin\initdb.exe" --pwfile="password.txt" --locale="English_United States" --encoding=UTF-8 -A trust -U postgres -D "C:\Program Files (x86)\PostgreSQL\9.1\data"
The files belonging to this database system will be owned by user "yzhang".
This user must also own the server process.

The database cluster will be initialized with locale English_United States.
The default text search configuration will be set to "english".

fixing permissions on existing directory C:/Program Files (x86)/PostgreSQL/9.1/data ... initdb: could not change permissions of directory "C:/Program Files (x86)/PostgreSQL/9.1/data": Permission denied

This is the exact error in the log file I got when I ran the installer. I don't understand why it tried to change the ownership of data folder to me. All it needs is the permissions!

And the fact is that the installer had messed up three different machines (Windows 7 Ultimate SP1 64-bit)!

Thanks,

Yong


-----Original Message-----
From: Dave Page [mailto:dpage@pgadmin.org] 
Sent: Wednesday, March 12, 2014 2:23 PM
To: Yong Zhang
Cc: Sandeep Thakkar; Pg Bugs
Subject: Re: [BUGS] BUG #9531: Failed to install

On Wed, Mar 12, 2014 at 2:52 PM, Yong Zhang <yzhang@trinityusa.com> wrote:
> Hello,
>
>
>
> After I submitted the bug online yesterday I tried to install 9.1 with 
> the data folder specified to a folder which is not in Program Files 
> (x86). The result was a disaster – it changed the owner of my C:\ to 
> postgres. So I had to go through lots trouble to restore my computer back to the working state.

I don't see any way that is possible. The installer only grants permissions - it doesn't touch the ownership; that requires use of commands/APIs that are not called anywhere in the installer as far as I can see.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (6+ messages)  latest in thread

Message-ID: <29FE3458A4A2B6419D1558999668038F014ED526@usmail.trinitybiotech.com>
Permalink:  ../29FE3458A4A2B6419D1558999668038F014ED526@usmail.trinitybiotech.com/
Also on:    postgresql.org/message-id/29FE3458A4A2B6419D1558999668038F014ED526@usmail.trinitybiotech.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-bugs@postgresql.org
  Cc: yzhang@trinityusa.com, dpage@pgadmin.org, sandeep.thakkar@enterprisedb.com
  Subject: Re: BUG #9531: Failed to install
  In-Reply-To: <29FE3458A4A2B6419D1558999668038F014ED526@usmail.trinitybiotech.com>
  References: <20140311163007.1230.6521@wrigleys.postgresql.org> <CANFyU96iD-d=ktOsZh_HtGfWMcVh8f0swygxtN6AOd3hHxAnqA@mail.gmail.com> <29FE3458A4A2B6419D1558999668038F0149B845@usmail.trinitybiotech.com> <CA+OCxoy_Cn8KkvbvJs1uGzqCVe5Ng=yu+8vVbYgEC3ef=qFHzg@mail.gmail.com.1394713475.36> <29FE3458A4A2B6419D1558999668038F014ED526@usmail.trinitybiotech.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