Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id A4B8B98F705 for ; Tue, 5 Jun 2012 15:49:10 -0300 (ADT) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SbyoU-0005KV-GQ for pgsql-bugs@postgresql.org; Tue, 05 Jun 2012 18:49:09 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id BA630DE; Tue, 5 Jun 2012 11:48:50 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.29.114] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 5 Jun 2012 11:48:48 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 7FAB06E40D; Tue, 5 Jun 2012 14:48:45 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: grv87 , Pg Bugs Subject: Re: BUG #6652: Installer grants postgres user rights for the whole disk, not specified subfolder From: Alvaro Herrera To: Dave Page In-reply-to: References: <1337536925-sup-3426@alvh.no-ip.org> Date: Tue, 05 Jun 2012 14:48:45 -0400 Message-Id: <1338922031-sup-8382@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11364) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-22130-10308 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: dpage@pgadmin.org X-Assp-Original-Subject: Re: [BUGS] BUG #6652: Installer grants postgres user rights for the whole disk, not specified subfolder Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/33 X-Sequence-Number: 33260 Excerpts from Dave Page's message of mar jun 05 14:38:54 -0400 2012: >=20 > On Sun, May 20, 2012 at 7:05 PM, Alvaro Herrera > wrote: > >> I have been installing PostgreSQL 9.1.3.2, and I've noted that 'crea= ting > >> database cluster' is too long. I have been waiting for a half of hou= r, and > >> it hasn't finished. > >> I've noted that installer calls icacls.exe with arguments: > >> D:\ /grant "postgres":RX > > > > This seems to be reported every once in a while. =C2=A0It looks like = the > > one-clunk installer is to blame. =C2=A0Maybe it's been fixed in some = more > > recent version -- Dave Page would probably know. >=20 > Just as an FYI, we are working on this. We've been able to reproduce > it, and it appears that icacls (a Microsoft utility) will sometimes > look at the ACL of every file/directory recursively when it grants the > required privileges on higher level directories. The good news is that > in none of the test we've done has it ever modified the ACL on the > wrong thing - it just takes a long time if there are a lot of items on > the filesystem. We've looked at third party alternatives to icacls, > and they seem to exhibit similar traits. We're also going to look into > other ways around the root problem. Maybe you should provide some way for the user to figure out the exact command it's running, where it's running it, and what user it runs as. =20 --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support