Cygwin Permissions Error - solved
2del
2del@maryhit.com
Thu May 5 08:02:00 GMT 2011
> THE PROBLEM: (see solution below)
> I used to get this error while running cygwin binaries from Visual Studio (either linked to IIS or not).
> I think it applies to other cases as well, when the binaries are being run by other users on that box.
> The Error was:
> 4 [main] ssh-keygen 8796 cygheap_user::init: GetTokenInformation (TokenPrimaryGroup), Win32 error 6
> 208 [main] ssh-keygen 8796 cygheap_user::init: GetTokenInformation (TokenUser), Win32 error 6
> 1202 [main] ssh-keygen 8796 c:\cygwin\bin\ssh-keygen.exe: *** fatal error - couldn't create signal pipe, Win32 error 5
> Stack trace:
> Frame Function Args
> 0022E20C 6102796B (0022E20C, 00000000, 00000000, 00000000)
> 0022E4FC 6102796B (6117EC60, 00008000, 00000000, 61180977)
> 0022F52C 61004F1B (611C4E1C, 00000000, 00000000, 00000000)
> 0022F94C 610C7B13 (611FCB10, 02000000, 6116A724, 6116A720)
> 0022F97C 61006506 (00000000, 00000002, 00000000, 76653480)
> 0022FA3C 6106FC15 (61000000, 00000001, 0022FD24, 00000001)
> 0022FA5C 7713AF24 (6106F960, 61000000, 00000001, 0022FD24)
> 0022FB50 7713FD2E (0022FD24, 7FFDF000, 7FFDE000, 771B714C)
> 0022FCB0 771490BE (0022FD24, 770E0000, 6FC5D1D7, 00000000)
> 0022FD00 77148FC0 (0022FD24, 770E0000, 00000000, 00000000)
> 0022FD10 7713B2C5 (0022FD24, 770E0000, 00000000, 00010017)
> End of stack trace
> ---
> SOLUTION:
> Initially I have tried the rebaseall solution presented on the net, but obviously was not the case for my error.
> In my case it was a permissions problem. The IIS 7 Identity was: Application Pool Identity (ApplicationPoolIdentity).
> I have changed it to: LocalSystem.
> Just to be on the safe side, I have also copied all the registry entries from: HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygwin\ to "HKEY_USERS\S-1-5-18\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygwin\" (aka Local System)
> I am not sure why is cygwin apps are trying to access the registry, but procmon (from sysinternals) showed some access denies.
> Maybe if there would be a version of cygwin which would not require registry access, it would work.
> Good luck, Cygwin fans.
--
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