pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dang Minh Huong <kakalot49@gmail.com>
To: 'Thomas Kellerer' <spam_eater@gmx.net>
To: pgsql-bugs@postgresql.org
Subject: Re: Window2012R2: initdb error: "The current directory is invalid."
Date: Tue, 19 Jan 2016 22:45:19 +0900
Message-ID: <041201d152bf$a508bee0$ef1a3ca0$@gmail.com> (raw)
In-Reply-To: <n7l8us$ecq$1@ger.gmane.org>
References: <75DB81BEEA95B445AE6D576A0A5C9E9364CAD50F@BPXM05GP.gisp.nec.co.jp>
	<n7l8us$ecq$1@ger.gmane.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

Thanks for reply sir,

> -----Original Message-----
> From: pgsql-bugs-owner@postgresql.org [mailto:pgsql-bugs-
> owner@postgresql.org] On Behalf Of Thomas Kellerer
> Sent: 19 Tháng Giêng 2016 9:08 CH
> To: pgsql-bugs@postgresql.org
> Subject: Re: [BUGS] Window2012R2: initdb error: "The current directory is
> invalid."
> 
> Huong Dangminh schrieb am 19.01.2016 um 11:49:
> > I have failed in execute initdb in "c:\Windows\Temp\dir" folder as
> > reproduce logs below. The OS's messages "The current directory is invalid."
> > was returned.
> 
> c:\Windows has special protection and it is not really surprising that a regular
> user isn't allowed to write into that directory.
> 
> When Postgres is started it drops all "Administrator" privileges for security
> reasons (older versions would refuse to start as
> Administrator) - and I think initdb is doing the same thing.
> So it's understandable that it can't write to c:\Windows
> 

I did not mean, create data cluster in C drive made that error sir.
This issue reproduce in all drive specified in -D option.
# My reproduce environment is only one (C) drive. So, sorry for the log.

I mean, it happen when current directory of command line is "c:\Windows\Temp\something".
It is rare case, and may be a Windows2012's specification, but i don't know
why only "c:\Windows\Temp\something" and are there another case like that?

> Putting application data into c:\Windows (or "c:\Program Files" for that
> matter) is an extremely bad idea to begin with (c:\Windows being even
> worse than "c:\Program Files")
> 
> You shouldn't be doing that anyway.
> 
> Thomas
> 

Thanks and best regards,
bocap.

> 
> 
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make
> changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
> 
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.7303 / Virus Database: 4489/11436 - Release Date: 01/19/16



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (9+ messages)  latest in thread

Message-ID: <041201d152bf$a508bee0$ef1a3ca0$@gmail.com>
Permalink:  ../041201d152bf$a508bee0$ef1a3ca0$@gmail.com/
Also on:    postgresql.org/message-id/041201d152bf$a508bee0$ef1a3ca0$@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: kakalot49@gmail.com, spam_eater@gmx.net
  Subject: Re: Window2012R2: initdb error: "The current directory is invalid."
  In-Reply-To: <041201d152bf$a508bee0$ef1a3ca0$@gmail.com>
  References: <75DB81BEEA95B445AE6D576A0A5C9E9364CAD50F@BPXM05GP.gisp.nec.co.jp> <n7l8us$ecq$1@ger.gmane.org> <041201d152bf$a508bee0$ef1a3ca0$@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox