Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 44FC9B5DBC4 for ; Wed, 14 Sep 2011 03:41:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 38717-02 for ; Wed, 14 Sep 2011 06:41:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 78A74B5D91F for ; Wed, 14 Sep 2011 03:41:19 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R3j9q-0002kh-2H for pgsql-general@postgresql.org; Wed, 14 Sep 2011 08:41:18 +0200 Received: from 217.110.94.67 ([217.110.94.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Sep 2011 08:41:18 +0200 Received: from spam_eater by 217.110.94.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Sep 2011 08:41:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: Re: Problem with the 9.1 one-click installer Windows7 64bit Date: Wed, 14 Sep 2011 08:41:42 +0200 Lines: 45 Message-ID: References: <4E702BA5.30509@ringerc.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.67 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <4E702BA5.30509@ringerc.id.au> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.229 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_NUMERIC_HELO=1.164, RP_MATCHES_RCVD=-0.504, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/370 X-Sequence-Number: 179728 Craig Ringer, 14.09.2011 06:20: > 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 > > 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. Thanks for the feedback. Those steps do make sense - and I appreciate the installer doing that, as there were a lot of problems in various forums regarding the permissions ;) But I have no idea why it's hanging (or taking that long). I ran the installer on a Windows XP box (32bit) that is not part of a domain, and there everything worked just fine. I currently don't have time to re-test this and wait until it finished (or check what iacls.exe is waiting for). But maybe next week I can try to find the real reason for that. Regards Thomas