Re: [GENERAL] One-click installer, Windows 7 32-bit, and icacls.exe

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Karl Wright <daddywri(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: [GENERAL] One-click installer, Windows 7 32-bit, and icacls.exe
Date: 2011-10-03 07:59:14
Message-ID: CABUevEytvKWHUBszgZmBdE2FUao9sE_AdwBET4T5v5b9BS9NpA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

On Fri, Sep 30, 2011 at 15:34, Karl Wright <daddywri(at)gmail(dot)com> wrote:
> I saw a thread where somebody saw icacls.exe being called by the
> one-click installer.  I'm having the same thing - the installer has
> been running for 45 minutes now and is basically going to have to be
> stopped because I'm out of time waiting for it.  Looking at process
> monitor, it is clear that icacls.exe is going through every file on
> the entire system and changing its permissions.  The process tree
> indicates that it is a child of the installer, and that it is running
> the command:
>
> icacls C:\ /grant "kawright":RX
>
> Clearly this won't do at all and should be considered a severe installer bug.

If it does, it certainly sounds like a very bad bug.

However, according to the documentation for icacls
(http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx), you
should use "/t" to get it to traverse into subdirectories, and clearly
it's not doing that. So I wonder why it would go across the whole
filesystem - might tbere be a bug in icacls?

Or maybe it has something to do with inheritance? The way
inheritance-permissions works on ntfs is, um, let's call it
interesting. Maybe it needs to specify the (NP) flag to not propagate
inheritance or something?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Page 2011-10-03 08:11:55 Re: [GENERAL] One-click installer, Windows 7 32-bit, and icacls.exe
Previous Message Stephen Frost 2011-10-02 00:00:23 Re: BUG #6231: weird to_timestamp behaviour with out of range values

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-10-03 08:02:16 Re: I don't understand something...
Previous Message Alexander Pyhalov 2011-10-03 07:48:45 Re: I don't understand something...