Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aLWbC-0004GX-S7 for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Jan 2016 13:45:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aLWbC-0001u1-9a for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Jan 2016 13:45:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aLWbB-0001tX-AG for pgsql-bugs@postgresql.org; Tue, 19 Jan 2016 13:45:29 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aLWb8-0007aO-0o for pgsql-bugs@postgresql.org; Tue, 19 Jan 2016 13:45:28 +0000 Received: by mail-pa0-x22f.google.com with SMTP id ho8so190970109pac.2 for ; Tue, 19 Jan 2016 05:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:content-language :thread-index; bh=6UB0WkUj7ZMjG1OO8my/AkEUMVSidfCDj/vxXVGKmpM=; b=rnXm3kMZ77UjmcuFN4unyGQueRigJTQrlbkhBBCsyz6ESfUQt5SA1fryowtmjnhezs HLqFj1H1qmtVHszNzLhXQ8CBb380GcxhpVlHOJ8rSgczNonT9S0tdsqt7rnF6A9aMCBC TVfUJ0W8DDpNJmxhbreIYxv4SmT4wky70YPXABfDSLOc2L11IEhm6lcVnv+nyA0qUlKu Ltyf5iNL4bliYgnHsu2mE0nxPm9Td37RXhGSKkQM9BAsSlrpG+xBFwnAu+1WAkRE2onX Vx5yRciyiaLc0YJrnXLL8AmwY+Ip3AMksPHDuBvwIovtCNoMKpC/VrHJdXedFLQHBmP2 eFkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :content-language:thread-index; bh=6UB0WkUj7ZMjG1OO8my/AkEUMVSidfCDj/vxXVGKmpM=; b=aQt60Q8A22cw5fBppVQ8XdlT7/a4361Ta8WZVSP963yCfw1yzmAeeFefW42FPLHK7U Tflk3TVckn6pSewLRhqR9CuDfOcgWVqOSYV00S/WgmIZvbrurezpmDb28z5Q6tZy6vlx r22J3OykbOaUlNsrpnUnwzv8f24Fjmd45jmqdSe+61t470ul8ocQq0efb4qlMf+CJoNa xPK1U9sBTc2abD50C84dq+Gk9y9L7D0JbkHvKqCuVNJXJaYk3JXmIeh4zNyuE7/UFLqZ upnhRgOJ1vzR2rSfkYUIy2sBAGEIv5qCyzZnVHMF2QWKlCN6+bfJm+NC7iwXpcNKMUEg WtuA== X-Gm-Message-State: AG10YORsH3mbMMRr89mAnXKBmhdnB427AVEGHGKeshNMmhdoMXIHWX3VuW+u5VL4FWGgcw== X-Received: by 10.66.102.40 with SMTP id fl8mr34088314pab.136.1453211125027; Tue, 19 Jan 2016 05:45:25 -0800 (PST) Received: from DESKTOPETFLUE3 (KD119104113024.au-net.ne.jp. [119.104.113.24]) by smtp.gmail.com with ESMTPSA id 76sm36127372pfl.36.2016.01.19.05.45.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2016 05:45:23 -0800 (PST) From: "Dang Minh Huong" To: "'Thomas Kellerer'" , References: <75DB81BEEA95B445AE6D576A0A5C9E9364CAD50F@BPXM05GP.gisp.nec.co.jp> In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Content-language: vi Thread-Index: AQDFQifAJoR3BzYTE9heN1p2SEOLFAGrOzZfoQ2d8NA= X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 Tha=CC=81ng Gi=C3=AAng 2016 9:08 CH > To: pgsql-bugs@postgresql.org > Subject: Re: [BUGS] Window2012R2: initdb error: "The current directory is > invalid." >=20 > 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 inval= id." > > was returned. >=20 > c:\Windows has special protection and it is not really surprising that a = regular > user isn't allowed to write into that directory. >=20 > When Postgres is started it drops all "Administrator" privileges for secu= rity > 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 >=20 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\Tem= p\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") >=20 > You shouldn't be doing that anyway. >=20 > Thomas >=20 Thanks and best regards, bocap. >=20 >=20 > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make > changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs >=20 > ----- > 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs