pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-general@postgresql.org
Subject: Re: Problem with the 9.1 one-click installer Windows7 64bit
Date: Wed, 14 Sep 2011 12:20:53 +0800
Message-ID: <4E702BA5.30509@ringerc.id.au> (raw)
In-Reply-To: <j4mu41$r5j$1@dough.gmane.org>
References: <j4l7fc$oan$1@dough.gmane.org>
	<CAHyXU0yYrwPb-Z+rm6DfFMtTqJ=gikv5yRx97vumquGvdgB-cQ@mail.gmail.com>
	<j4mu41$r5j$1@dough.gmane.org>

On 09/13/2011 02:44 PM, Thomas Kellerer wrote:

> It turned out that it tries the following:
> (Note that the selected data directory is c:\Daten\db\pgdata91)
>
> icacls C:\ /grant "tkellerer":RX
>
> (Changing the permission for the whole harddisk!!)

I forwarded your message to Dave Page in case the EDB folks needed to 
look into this. He commented that:

"Aside from the fact that icacls is hanging for reasons unknown, it 
appears to be doing what it is designed to do - it traverses up the path 
from the data directory to the root directory, granting read/execute 
permissions on each dir as it goes. It's a non-recursive grant (the 
default - /T makes it recurse), and is done because a great deal of the 
failures we used to see were caused by the user not having read or 
execute permissions on one of the parents of the data directory (or 
installation directory)."

... which to me explains why:

> Then when I kill that process, the installer starts a new one with
>
> icacls "C:\Daten" /grant "tkellerer":RX


> So it didn't actually hang, but changing the permissions for the entire
> harddisk (170GB taken) and the complete c:\Daten (~20GB) directory twice
> would have taken ages.

As Dave noted, it's a non-recursive grant. It isn't changing the 
permissions for C:\ and everything under it. It's only changing the 
permissions for C:\ its self. It's then stepping down the path of 
parents down to the datadir and doing the same thing to make sure you 
have the required rights on every folder all the way down.

See:
http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx

and note the lack of the /t flag when icacls is called.

Given that, it's not clear why it's taking so long. A lock of some kind, 
maybe? Anyway, it's *not* recursively changing the permissions on your HDD.

--
Craig Ringer



view thread (12+ messages)  latest in thread

Message-ID: <4E702BA5.30509@ringerc.id.au>
Permalink:  ../4E702BA5.30509@ringerc.id.au/
Also on:    postgresql.org/message-id/4E702BA5.30509@ringerc.id.au

 · 

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: ringerc@ringerc.id.au, spam_eater@gmx.net, pgsql-general@postgresql.org
  Subject: Re: Problem with the 9.1 one-click installer Windows7 64bit
  In-Reply-To: <4E702BA5.30509@ringerc.id.au>
  References: <j4l7fc$oan$1@dough.gmane.org> <CAHyXU0yYrwPb-Z+rm6DfFMtTqJ=gikv5yRx97vumquGvdgB-cQ@mail.gmail.com> <j4mu41$r5j$1@dough.gmane.org> <4E702BA5.30509@ringerc.id.au>

* 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