public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Baffled: is it Cygwin (64-bits) or Windows that causes the  invocation of regedit (from bash) to fail?
@ 2014-05-10 13:42 Houder
  2014-05-10 14:11 ` Chris J. Breisch
  0 siblings, 1 reply; 11+ messages in thread
From: Houder @ 2014-05-10 13:42 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-05-13 15:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-10 13:42 Baffled: is it Cygwin (64-bits) or Windows that causes the invocation of regedit (from bash) to fail? Houder
2014-05-10 14:11 ` Chris J. Breisch
2014-05-12 12:50   ` Houder
2014-05-12 12:51     ` Andrey Repin
2014-05-12 17:13       ` Houder
2014-05-12 13:01     ` Corinna Vinschen
2014-05-12 13:15       ` Shaddy Baddah
2014-05-12 13:23         ` Corinna Vinschen
2014-05-12 18:47         ` Houder
2014-05-12 17:31       ` Houder
2014-05-13 15:10   ` Houder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).