From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16888 invoked by alias); 29 Jul 2013 13:17:52 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 16863 invoked by uid 89); 29 Jul 2013 13:17:51 -0000 X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KHOP_DNSBL_BUMP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO smtp204.alice.it) (82.57.200.100) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 29 Jul 2013 13:17:50 +0000 Received: from [192.168.1.100] (79.0.16.98) by smtp204.alice.it (8.6.060.28) (authenticated as angelo.graziosi@alice.it) id 51F2786000439489 for cygwin-xfree@cygwin.com; Mon, 29 Jul 2013 15:17:42 +0200 Message-ID: <51F66B62.9060408@alice.it> Date: Mon, 29 Jul 2013 13:17:00 -0000 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: XCygwin Subject: Re: Postinstal failure for xinit.sh References: <51F4486B.9080104@alice.it> In-Reply-To: <51F4486B.9080104@alice.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-07/txt/msg00021.txt.bz2 Il 28/07/2013 0.23, Angelo Graziosi ha scritto: > For completenes, I want to flag that on Windows 7 U 64b and Cygwin32 > (but should be the same for Cygwin64) xinit.sh (postinstall) fails as > follows (from setu.log.full): > > [...] > 2013/07/27 23:41:15 running: C:\cygwin\bin\bash.exe --norc --noprofile > "/etc/postinstall/xinit.sh" > /usr/bin/mkdir: cannot create directory > `/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/Cygwin-X': Permission denied > mkshortcut: Saving "C:\ProgramData\Microsoft\Windows\Start > Menu\Programs\Cygwin-X\XWin Server.lnk" failed; does the target > directory exist? > 2013/07/27 23:41:17 abnormal exit: exit code=3 > ... The cause was an UAC issue. I am new to W7 (64) so I am trying to setup it as on XP (32). More precisely, I have chose the local Cygwin repository in $HOME/cygwin_repo, being $HOME the HOME of the administrator (angelo). And, after the first installation (in which I got the UAC request), I have put setup-x86[_64].exe in the local repo. Cygwin32 is installed in C:\cygwin while Cygwin64 is in C:\cygwin64. I use the same repo for both (they are separated in MIRROR/x86[_64]) So, to install/update packages, I do: Start|Run C:\cygwin\home\angelo\cygwin_repo\setup-x86.exe (Cygwin32) C:\cygwin\home\angelo\cygwin_repo\setup-x86_64.exe (Cygwin64) Now, starting setup-x86_64.exe asks me always the UAC confirmation, instead setup-x86.exe don't! It run without administrator permissions. And this causes the failure described in my OP. The workaround has been to move setup-x86.exe in the parent directory, i.e. Start|Run C:\cygwin\home\angelo\setup-x86.exe asks me the UAC confirmation, it really run as administrator. What I don't understand is why moving setup-x86.exe in that way fixes the issue. I have also removed cygwin_repo and recreated but setup-x86.exe needs to stay above cygwin_repo... This regard only setup-x86.exe and not setup-x86_64.exe.. :( > > Ciao, > Angelo. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/