Re: BUG #7843: Incorrect using icacls

From: Dave Page <dpage(at)pgadmin(dot)org>
To: "QuiverNAY(at)gmail(dot)com" <QuiverNAY(at)gmail(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #7843: Incorrect using icacls
Date: 2013-02-01 14:53:55
Message-ID: CA+OCxoykd7QQbNynUSrXyWVFc93B+x5OgXAypD+dykq4VN01_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Friday, February 1, 2013, wrote:

> The following bug has been logged on the website:
>
> Bug reference: 7843
> Logged by: Andrey
> Email address: QuiverNAY(at)gmail(dot)com <javascript:;>
> PostgreSQL version: 9.2.2
> Operating system: Windows 7 x64
> Description:
>
> When i try to install postgresql-9.2.2-1-windows-x64.exe, it ask aboute DB
> files path.
> I have chosen d:\Server\DB\
> then installer runs but file:
> "
> @ECHO OFF
> icacls D:\ /grant "NT AUTHORITY\NetworkService":(NP)(RX) >
> "C:\Temp\rad9B244.tmp" 2>&1
> EXIT /B %ERRORLEVEL%
> "
> It is incorrect. I believe that cacls should be run only on specified path
> (d:\Server\DB\).
> Besides this path have full access for Everyone and Administrators.
>
>
This is intentional - it traverses back up the path and makes sure that the
service account user has read and execute permissions on each directory up
to and including the root. Otherwise, it may not be able to actually write
to the data directory, even if it has permission on that directory. It's a
somewhat brute-force approach that I hope to improve by 9.3, maybe earlier,
but it does prevent failures in some environments.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2013-02-01 15:06:58 Re: BUG #7842: pg_dump scripts view to table
Previous Message info 2013-02-01 12:02:41 BUG #7844: xpath missing entity decoding - bug or feature