Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id ABFAC194E782 for ; Wed, 6 Jun 2012 16:04:57 -0300 (ADT) Received: from forward4h.mail.yandex.net ([2a02:6b8:0:f05::4]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ScLXL-0001gf-Bx for pgsql-bugs@postgresql.org; Wed, 06 Jun 2012 19:04:56 +0000 Received: from web11h.yandex.ru (web11h.yandex.ru [84.201.186.40]) by forward4h.mail.yandex.net (Yandex) with ESMTP id B8A2B1B21692; Wed, 6 Jun 2012 23:04:40 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1339009480; bh=C3mzqJ40ooe6rD4Mo5N7JSPxKD3cgmdYEogaEgtAg6E=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=roDIG4OaSFISIkgLyw+KJ0aIVdBvxhvdlkROpry23AadSKiVwplz5O/gK00kQblkB fIu61F3Q0v1rpjE7Zvunvu7kLFPgoabOglnC5k4qZzljvWDQ1CvkPrVVlBXLugH1V6 +dII4TqJh57qAg69/ttHU2/F0oOcd32Gz11bZtJM= Received: from 127.0.0.1 (localhost.localdomain [127.0.0.1]) by web11h.yandex.ru (Yandex) with ESMTP id 4019B1329560; Wed, 6 Jun 2012 23:04:40 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1339009480; bh=C3mzqJ40ooe6rD4Mo5N7JSPxKD3cgmdYEogaEgtAg6E=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=roDIG4OaSFISIkgLyw+KJ0aIVdBvxhvdlkROpry23AadSKiVwplz5O/gK00kQblkB fIu61F3Q0v1rpjE7Zvunvu7kLFPgoabOglnC5k4qZzljvWDQ1CvkPrVVlBXLugH1V6 +dII4TqJh57qAg69/ttHU2/F0oOcd32Gz11bZtJM= Received: from broadband-188-32-184-83.nationalcablenetworks.ru (broadband-188-32-184-83.nationalcablenetworks.ru [188.32.184.83]) by web11h.yandex.ru with HTTP; Wed, 06 Jun 2012 23:04:39 +0400 From: Basil Peace To: Dave Page Cc: Pg Bugs , Alvaro Herrera In-Reply-To: References: <1337536925-sup-3426@alvh.no-ip.org> Subject: Re: BUG #6652: Installer grants postgres user rights for the whole disk, not specified subfolder MIME-Version: 1.0 Message-Id: <203291339009479@web11h.yandex.ru> Date: Wed, 06 Jun 2012 23:04:39 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.5 (-) X-Archive-Number: 201206/46 X-Sequence-Number: 33273 In my case invalid argument (root directory instead of specified data dir= ectory) was passed by installer to icacls. That's what I saw. It wasn't p= roblem of icacls, it was a problem in pgsql installer. 05.06.2012, 22:38, "Dave Page" : > On Sun, May 20, 2012 at 7:05 PM, Alvaro Herrera > wrote: > >> =C2=A0Excerpts from grv87's message of s=C3=A1b may 19 10:28:47 -0400 = 2012: >>> =C2=A0The following bug has been logged on the website: >>> >>> =C2=A0Bug reference: =C2=A0 =C2=A0 =C2=A06652 >>> =C2=A0Logged by: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Basil Peace >>> =C2=A0Email address: =C2=A0 =C2=A0 =C2=A0grv87@yandex.ru >>> =C2=A0PostgreSQL version: 9.1.3 >>> =C2=A0Operating system: =C2=A0 Windows 7 x64 >>> =C2=A0Description: >>> >>> =C2=A0I have been installing PostgreSQL 9.1.3.2, and I've noted that = 'creating >>> =C2=A0database cluster' is too long. I have been waiting for a half o= f hour, and >>> =C2=A0it hasn't finished. >>> =C2=A0I've noted that installer calls icacls.exe with arguments: >>> =C2=A0D:\ /grant "postgres":RX >> =C2=A0This seems to be reported every once in a while. =C2=A0It looks = like the >> =C2=A0one-clunk installer is to blame. =C2=A0Maybe it's been fixed in = some more >> =C2=A0recent version -- Dave Page would probably know. > > 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.