gpg 1.0.6 hangs in rxvt 2.7.2-10 on Windows 2000
Andy Freeman
news@symbad.co.uk
Sat Jun 1 21:30:02 2002
It could be to do with the user context that your cygwin rxvt runs in.
I don't know what "cygwin rxvt" is,
but we had an identical (symptom-wise) problem
trying to run it from a web application.
It reads the HKEY_CURRENT_USER key,
which is inaccessible to the standard web user.
This is also the case for Services.
Assuming that cygwin is running in the web context or as a Service,
The solution is :
1) Create a new user, with user only permissions
2) Login as this user, and use regedit to add the key
listed in the readme.w32 doc .
("\\HKEY_CURRENT_USER\Software\GNU\GnuPG\HomeDir
Please use forward slashes and not the backslashes when
setting filenames for GnuPG into the Registry."
. So, in this key you set the default string value to be e.g. c:/gnupg/
)
3) Set the file permissions on the gnupg folder, and all its files,
to include "change" permissions for this new user.
4) Change the context that your cygwin runs as.
(If it's being run through IIS, then :
a) Open up iis admin
b) Go to the properties of the website / webfolder which contains your
cygwin.
c) Go to directory security tab
d) Edit "anonymous access & authentication control"
e) Change the "account used for anonymous access" to this new user
f) Enter the password for this account
g) DO NOT TICK the "allow iis to manage pwd" (or "... synchronise pwd"
depending on iis version).
h) Make sure that the password on your user is VERY secure.
)
If it's being run as a Service, then (I think this is correct):
a) Go to control panel | services
b) Find the service, and open its properties
c) Go to the "logon" tab, change "log on as" to the user you've just
created.
5) MAKE SURE that this user has access rights to the TEMP folder,
or whichever folder you are using to store the intermediate files,
if you are using file i/o.
We spent about a week trying get GnuPg to run on both linux and NT servers,
with no problems at all when running on linux, mac and NT desktops.
On both servers, the GnuPg process was started but never completed,
and we had to kill each GnuPG process.
On both servers the problem was identical :
The user under whose context the web process was running
was not configured correctly.
But to us it looked like there was something wrong with gnupg.
(which there wasn't).
Hope this helps
Andy Freeman
----- Original Message -----
From: "Matt McClure" <mlm@aya.yale.edu>
To: <cygwin@cygwin.com>; <gnupg-users@gnupg.org>
Sent: Friday, May 31, 2002 10:54 PM
Subject: gpg 1.0.6 hangs in rxvt 2.7.2-10 on Windows 2000
> Using GnuPG 1.0.6, if I do:
>
> $ gpg -se -a -r mlm@aya.yale.edu file
>
> from a cygwin rxvt (2.7.2-10) on Windows 2000, it just hangs forever.
> If I do the same thing from a cygwin bash shell running within cmd.exe,
> it works just fine. Any idea what's going on in rxvt?
>
> --
> Matt
> http://www.faradic.net/~mmcclure/
>
> We need to pitch better, we need to hit better, we need to play
> better defense. Aside from that, we're fine.
> - Joe Torre
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>