From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2975 invoked by alias); 10 May 2014 13:42:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2962 invoked by uid 89); 10 May 2014 13:42:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_50,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp-vbr11.xs4all.nl Received: from smtp-vbr11.xs4all.nl (HELO smtp-vbr11.xs4all.nl) (194.109.24.31) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 10 May 2014 13:42:15 +0000 Received: from webmail.xs4all.nl (dovemail16.xs4all.nl [194.109.26.18]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id s4ADgBds014066 for ; Sat, 10 May 2014 15:42:12 +0200 (CEST) (envelope-from houder@xs4all.nl) Received: from 83.163.110.75 (SquirrelMail authenticated user incog) by webmail.xs4all.nl with HTTP; Sat, 10 May 2014 15:42:12 +0200 Message-ID: <849f1f5420ebf77d7a591d6c9b6bfa4b.squirrel@webmail.xs4all.nl> Date: Sat, 10 May 2014 13:42:00 -0000 Subject: Baffled: is it Cygwin (64-bits) or Windows that causes the invocation of regedit (from bash) to fail? From: "Houder" To: cygwin@cygwin.com User-Agent: SquirrelMail/1.4.18 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2014-05/txt/msg00194.txt.bz2 Hi, At my place I have installed both versions of Cygwin (i.e. 32-bits and 64-bits) -- of course, in different places. As "some" of you will have the "same" setup, I would like you to confirm the following (UNexpected, to me) result: - I canNOT invoke regedit from 64-bits bash (Yes, I can if bash has been invoked in ELEVATED mode) - I can invoke regedit from 64-bits bash (not elevated) as follows: cygstart regedit - however, I can invoke regedit from 32-bits bash (not elevated) ... - likewise, I can invoke regedit from 64-bits cmd (not elevated) ... By UNexpected result I mean: I cannot explain why I canNOT invoke regedit from 64-bits bash ... My installation in general: - stand-alone installation (i.e. not connected to a domain) - standard passwd and group files - nsswitch.conf: passwd: file, group: files, db_enum: files ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- Using my 64-bits Cygwin installation (MinTTY, bash) at e:/Cygwin64: 64-@@ uname -a CYGWIN_NT-6.1 Seven 1.7.30s(0.272/5/3) 20140426 17:41:38 x86_64 Cygwin 64-@@ echo $PATH /usr/local/bin:/usr/bin:/drv/c/WINDOWS/system32:/drv/c/WINDOWS:/drv/c/WINDOWS/System32/Wbem:/home/Henri/bin 64-@@ pwd /home/Henri 64-@@ which -a regedit /drv/c/WINDOWS/regedit 64-@@ ls -l /drv/c/WINDOWS/regedit -rwxrwx---+ 2 TrustedInstaller TrustedInstaller 427008 Jul 14 2009 /drv/c/WINDOWS/regedit 64-@@ stat /drv/c/WINDOWS/regedit File: `/drv/c/WINDOWS/regedit' Size: 427008 Blocks: 420 IO Block: 65536 regular file Device: 12f0a5c0h/317760960d Inode: 281474976726615 Links: 2 Access: (0770/-rwxrwx---) Uid: (4294967294/TrustedInstaller) Gid: (4294967294/TrustedInstaller) Access: 2009-07-14 01:27:10.125698800 +0200 Modify: 2009-07-14 03:39:29.639000000 +0200 Change: 2013-10-16 16:50:39.470163200 +0200 Birth: 2009-07-14 01:27:10.125698800 +0200 64-@@ regedit # regedit FAILS TO OPEN ***** E:\Cygwin64\bin\bash: /drv/c/WINDOWS/regedit: Permission denied 64-@@ cygstart regedit # regedit opens normally ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- Using my 64-bits Cygwin installation (MinTTY, >>>>> ELEVATED <<<<< bash) at e:/Cygwin64 64-@@# uname -a CYGWIN_NT-6.1 Seven 1.7.30s(0.272/5/3) 20140426 17:41:38 x86_64 Cygwin 64-@@# echo $PATH /usr/local/bin:/usr/bin:/drv/c/WINDOWS/system32:/drv/c/WINDOWS:/drv/c/WINDOWS/System32/Wbem:/home/Henri/bin 64-@@# pwd /home/Henri 64-@@# which -a regedit /drv/c/WINDOWS/regedit 64-@@# ls -l /drv/c/WINDOWS/regedit -rwxrwx---+ 2 TrustedInstaller TrustedInstaller 427008 Jul 14 2009 /drv/c/WINDOWS/regedit 64-@@# stat /drv/c/WINDOWS/regedit File: `/drv/c/WINDOWS/regedit' Size: 427008 Blocks: 420 IO Block: 65536 regular file Device: 12f0a5c0h/317760960d Inode: 281474976726615 Links: 2 Access: (0770/-rwxrwx---) Uid: (4294967294/TrustedInstaller) Gid: (4294967294/TrustedInstaller) Access: 2009-07-14 01:27:10.125698800 +0200 Modify: 2009-07-14 03:39:29.639000000 +0200 Change: 2013-10-16 16:50:39.470163200 +0200 Birth: 2009-07-14 01:27:10.125698800 +0200 64-@@# regedit # regedit opens normally 64-@@# cygstart regedit # dito ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- Using my 32-bits Cygwin installation (MinTTY, bash) at e:/Cygwin @@ uname -a CYGWIN_NT-6.1-WOW64 Seven 1.7.30s(0.272/5/3) 20140426 17:41:38 i686 Cygwin @@ echo $PATH /usr/local/bin:/usr/bin:/drv/c/WINDOWS/System32:/drv/c/WINDOWS:/drv/c/WINDOWS/System32/Wbem:/home/Henri/bin @@ pwd /home/Henri @@ which -a regedit /drv/c/WINDOWS/System32/regedit /drv/c/WINDOWS/regedit @@ ls -l /drv/c/WINDOWS/System32/regedit -rwxrwx---+ 2 TrustedInstaller TrustedInstaller 398336 Jul 14 2009 /drv/c/WINDOWS/System32/regedit # a different file than before, apparently ... @@ stat /drv/c/WINDOWS/System32/regedit File: `/drv/c/WINDOWS/System32/regedit' Size: 398336 Blocks: 392 IO Block: 65536 regular file Device: 12f0a5c0h/317760960d Inode: 281474976748756 Links: 2 Access: (0770/-rwxrwx---) Uid: (4294967294/TrustedInstaller) Gid: (4294967294/TrustedInstaller) Access: 2009-07-14 01:17:08.803392200 +0200 Modify: 2009-07-14 03:14:30.457000000 +0200 Change: 2013-10-10 07:23:25.639492800 +0200 Birth: 2009-07-14 01:17:08.803392200 +0200 @@ regedit # regedit opens normally @@ cygstart regedit # dito ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- Using the 64-bits cmd.exe from MS: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. 64-C:\Users\Henri>e:\Cygwin64\bin\which -a regedit /drv/c/Windows/regedit 64-C:\Users\Henri>e:\Cygwin64\bin\ls -l /drv/c/Windows/regedit* -rwxrwx---+ 2 TrustedInstaller TrustedInstaller 427008 Jul 14 2009 /drv/c/Windows/regedit.exe 64-C:\Users\Henri>e:\Cygwin64\bin\stat /drv/c/Windows/regedit* File: `/drv/c/Windows/regedit.exe' Size: 427008 Blocks: 420 IO Block: 65536 regular file Device: 12f0a5c0h/317760960d Inode: 281474976726615 Links: 2 Access: (0770/-rwxrwx---) Uid: (4294967294/TrustedInstaller) Gid: (4294967294/TrustedInstaller) Access: 2009-07-14 01:27:10.125698800 +0200 Modify: 2009-07-14 03:39:29.639000000 +0200 Change: 2013-10-16 16:50:39.470163200 +0200 Birth: 2009-07-14 01:27:10.125698800 +0200 64-C:\Users\Henri>regedit # regedit opens normally 64-C:\Users\Henri>start regedit # dito 64-C:\Users\Henri>e:\Cygwin64\cygstart regedit # dito ====== -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple