Baffled: is it Cygwin (64-bits) or Windows that causes the invocation of regedit (from bash) to fail?

Houder houder@xs4all.nl
Sat May 10 13:42:00 GMT 2014


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



More information about the Cygwin mailing list