Thread View: news.software.nntp
7 messages
7 total messages
Started by Mike Zanker
Tue, 20 Apr 2004 15:39
Weird pgpverify problem
Author: Mike Zanker
Date: Tue, 20 Apr 2004 15:39
Date: Tue, 20 Apr 2004 15:39
32 lines
2478 bytes
2478 bytes
OK, I've spent most of the afternoon trying to sort this out without success so it's time to resort to the experts :) I have two INN servers, one running INN 2.3.5 (Red Hat's own RPM supplied with Red Hat Enterprise Linux 3.0) and the other running INN 2.4.1 (compiled by myself on Solaris 9). The feeder (2.4.1) processes PGP-signed control messages fine. The reader (2.3.5) does not. The reader, in news.err, says pgpverify: gpgv exited status 2 processing <1082426649.9341@news.a3.xs4all.nl> skipping newgroup nl-admin@nic.surfnet.nl (pgpverify failed) in <1082426649.9341@news.a3.xs4all.nl> If I run pgpverify from the command line on that particular control message, the output is "nl.newsgroups" on BOTH servers. So pgpverify seems to be working fine. If I run "echo <path to control message> | controlchan" on each server, it works on the 2.4.1 server but fails on the 2.3.5 server. This seems to be because controlchan is trying to execute "sm -q <path to control message> |pgpverify" which fails because <path to control message> is not a token. However, I think that may be a red herring. The real cause seems to be that gpgv is exiting with status 2 when run via controlchan (but not when running pgpverify manually). Any ideas? Thanks, Mike.
Re: Weird pgpverify problem
Author: Russ Allbery
Date: Tue, 20 Apr 2004 18:28
Date: Tue, 20 Apr 2004 18:28
33 lines
2767 bytes
2767 bytes
Mike Zanker <not-for-mail@zanker.org> writes:
> The feeder (2.4.1) processes PGP-signed control messages fine. The
> reader (2.3.5) does not. The reader, in news.err, says
> pgpverify: gpgv exited status 2 processing
> <1082426649.9341@news.a3.xs4all.nl> skipping newgroup
> nl-admin@nic.surfnet.nl (pgpverify failed) in
> <1082426649.9341@news.a3.xs4all.nl>
I wish I could remember gpgv exit status better, but I'm wondering if
somehow it's not finding its keyring when run inside INN but is outside of
INN. Another possibility could be that there's something different about
the whitespace between when you're running it by hand and when you're
running it inside INN; how did you extract the message to run pgpverify on
it by hand?
> If I run "echo <path to control message> | controlchan" on each server, it
> works on the 2.4.1 server but fails on the 2.3.5 server. This seems to be
> because controlchan is trying to execute "sm -q <path to control message>
> |pgpverify" which fails because <path to control message> is not a token.
Hm. controlchan should actually know that it's a path rathe than a token,
but try running that command with the token instead. (You can get the
token with grephistory on the message ID.) You really want to be able to
run this under pgpverify -test so that you can see exactly what output
pgpverify is producing. (I think that -test worked in 2.3.5.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Weird pgpverify problem
Author: Mike Zanker
Date: Tue, 20 Apr 2004 18:46
Date: Tue, 20 Apr 2004 18:46
36 lines
2712 bytes
2712 bytes
Russ Allbery <rra@stanford.edu> wrote in news:87hdveld0i.fsf@windlord.stanford.edu: > I wish I could remember gpgv exit status better, but I'm wondering > if somehow it's not finding its keyring when run inside INN but is > outside of INN. I think that might be it - looking back through some old logs "status 2" is what you get when you don't have a hierarchy's key in the keyring. > Another possibility could be that there's > something different about the whitespace between when you're > running it by hand and when you're running it inside INN; how did > you extract the message to run pgpverify on it by hand? I didn't - I just used the raw article from tradspool. > Hm. controlchan should actually know that it's a path rathe than > a token, but try running that command with the token instead. Looking at the code, 2.3.5 controlchan assumes that it's being passed a token. 2.4.1 checks for the presence of the two @s and, if they're not present, treats it as a path to the article. > (You can get the token with grephistory on the message ID.) You > really want to be able to run this under pgpverify -test so that > you can see exactly what output pgpverify is producing. (I think > that -test worked in 2.3.5.) I've just run controlchan with the article's token and it worked fine. So it looks like it works outside INN but not inside. I wonder if setting GNUPGHOME in INN's startup script might help? Mike.
Re: Weird pgpverify problem
Author: Mike Zanker
Date: Tue, 20 Apr 2004 19:07
Date: Tue, 20 Apr 2004 19:07
11 lines
1582 bytes
1582 bytes
Mike Zanker <not-for-mail@zanker.org> wrote: > So it looks like it works outside INN but not inside. I wonder if > setting GNUPGHOME in INN's startup script might help? Doing a "ps -e e" shows that HOME=/usr/lib/news for the running controlchan process whereas the user "news" home directory (in /etc/passwd) is /etc/news. I've copied .gnupg from /etc/news to /usr/lib/news to see if this will fix it. Mike.
Re: Weird pgpverify problem
Author: Russ Allbery
Date: Tue, 20 Apr 2004 19:57
Date: Tue, 20 Apr 2004 19:57
21 lines
2233 bytes
2233 bytes
Mike Zanker <not-for-mail@zanker.org> writes:
> Mike Zanker <not-for-mail@zanker.org> wrote:
>> So it looks like it works outside INN but not inside. I wonder if
>> setting GNUPGHOME in INN's startup script might help?
> Doing a "ps -e e" shows that HOME=/usr/lib/news for the running
> controlchan process whereas the user "news" home directory (in
> /etc/passwd) is /etc/news. I've copied .gnupg from /etc/news to
> /usr/lib/news to see if this will fix it.
pgpverify also has some logic for setting the path to the keyring in the
script; you may want to take a look at that and see if you can use it.
(It will probably expect the keyring to be in something like /etc/news/pgp
depending on the paths used by your installation.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Weird pgpverify problem
Author: Mike Zanker
Date: Tue, 20 Apr 2004 20:03
Date: Tue, 20 Apr 2004 20:03
10 lines
1557 bytes
1557 bytes
Russ Allbery <rra@stanford.edu> wrote: > pgpverify also has some logic for setting the path to the keyring in the > script; you may want to take a look at that and see if you can use it. > (It will probably expect the keyring to be in something like /etc/news/pgp > depending on the paths used by your installation.) Thanks, I'll take a look. Mike.
Re: Weird pgpverify problem
Author: Mike Zanker
Date: Wed, 21 Apr 2004 09:00
Date: Wed, 21 Apr 2004 09:00
8 lines
1497 bytes
1497 bytes
Russ Allbery <rra@stanford.edu> wrote: > pgpverify also has some logic for setting the path to the keyring in the > script; you may want to take a look at that and see if you can use it. Thanks - setting the $keyring variable fixed it. Mike.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads