This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>> 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 ...
> [snip]
>
>> E:\Cygwin64\bin\bash: /drv/c/WINDOWS/regedit: Permission denied
>
> I can not duplicate your behavior. I can not invoke regedit from any
> non-elevated bash prompt, regardless of whether it is 32-bit or 64-bit.
> I get the above error in both cases.

Hi Chris,

Once more, thank you for your input!

Your system shows indeed the "correct" behaviour :-)

On my system the key

    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

had a field e:\Cygwin\bin\bash.exe that read ELEVATECREATEPROCESS

Once the field had been deleted, I got the same behaviour as you did.

(do not ask me how the field with THAT value got there -- I simply do not know)

Henri


--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]