🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Chris Dent Wed, 16 Apr 1997 00:00
Odd Behavior with PGP verify
#17037
Author: Chris Dent
Date: Wed, 16 Apr 1997 00:00
17 lines
977 bytes

I'm using pgp 2.6.2 on Linux 2.0.29 (with Redhat 4.1) with INN 1.5.1 to
verify control messages for the Big 8.

Incoming control messages are dumped to badpgp.log and not run,
however when I run the control message against ctlrun the message is
accepted and the newgroup or rmgroup runs.

This strikes me as downright odd, and I'm having trouble diagnosing
the problem. Anyone have any ideas?
-- 
..........................
Chris Dent........SysAdmin
...........Kiva Networking

Re: Odd Behavior with PGP verify
#17076
Author: Wolfgang Rupprecht
Date: Wed, 16 Apr 1997 00:00
22 lines
1466 bytes

cdent@kold.kiva.net (Chris Dent) writes:
> I'm using pgp 2.6.2 on Linux 2.0.29 (with Redhat 4.1) with INN 1.5.1 to
> verify control messages for the Big 8.
> Incoming control messages are dumped to badpgp.log and not run,
> however when I run the control message against ctlrun the message is
> accepted and the newgroup or rmgroup runs.

I'm seeing the same thing here.

I'm assuming its a $HOME/.pgp/pubring.pgp problem.  Perhaps INN-1.5.1
doesn't set $HOME? so pgp gets confused where its pubring.pgp file is
located.  I'm waiting for the next batch of newgroups to arrive so I
can see if my wrapper shell-script did any good. 

-wolfgang
-- 
Wolfgang Rupprecht    <wolfgang@wsrcc.com>     http://www.wsrcc.com/
check out my GPS hacks at:         http://www.wsrcc.com/wolfgang/gps/

Re: Odd Behavior with PGP verify
#17079
Author: James Brister
Date: Thu, 17 Apr 1997 00:00
23 lines
1423 bytes
Wolfgang Rupprecht <wolfgang@dailyplanet.wsrcc.com> writes:
> cdent@kold.kiva.net (Chris Dent) writes:
> > I'm using pgp 2.6.2 on Linux 2.0.29 (with Redhat 4.1) with INN 1.5.1 to
> > verify control messages for the Big 8.
> > Incoming control messages are dumped to badpgp.log and not run,
> > however when I run the control message against ctlrun the message is
> > accepted and the newgroup or rmgroup runs.
> 
> I'm seeing the same thing here.
> 
> I'm assuming its a $HOME/.pgp/pubring.pgp problem.  Perhaps INN-1.5.1
> doesn't set $HOME?

It (inndstart) does, using the value of _PATH_NEWSHOME in config.data. If
that's wrong, then PGP probably won't be happy.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: Odd Behavior with PGP verify
#17113
Author: Julio Sanchez
Date: Fri, 18 Apr 1997 00:00
96 lines
3284 bytes
James Brister <brister@vix.com> writes:

> 
> Wolfgang Rupprecht <wolfgang@dailyplanet.wsrcc.com> writes:
> > cdent@kold.kiva.net (Chris Dent) writes:
> > > I'm using pgp 2.6.2 on Linux 2.0.29 (with Redhat 4.1) with INN 1.5.1 to
> > > verify control messages for the Big 8.
> > > Incoming control messages are dumped to badpgp.log and not run,
> > > however when I run the control message against ctlrun the message is
> > > accepted and the newgroup or rmgroup runs.
> > 
> > I'm seeing the same thing here.
> > 
> > I'm assuming its a $HOME/.pgp/pubring.pgp problem.  Perhaps INN-1.5.1
> > doesn't set $HOME?
> 
> It (inndstart) does, using the value of _PATH_NEWSHOME in config.data. If
> that's wrong, then PGP probably won't be happy.

In RedHat, it is /usr/lib/news.  So putting it there should work.

What I did, however, was to put it in /etc/news/.pgp and make links
from /usr/lib/news/.pgp *and* /var/lib/news/.pgp to that.  I didn't
really know which one fixed it, but one of them did.

The following script can be used to retry a control message that
failed.  It tries to reexecute as if it was newly received, so it is
useful to retry a control message after changing control.ctl or if you
have PGP path problems, but will not authorize a control message that
is forbidden by control-ctl.  Sanity checks should be better, since it
is vulnerable to traps in e-mail addresses and Path:, so be careful:

#!/usr/bin/perl

$path = $ARGV[0];

open (ART, $path) || die "Cannot open $path\n";
while (<ART>) {
	last if /^$/;
	if (/^path:\s*[^!]+!([^!]+)!/i) {
		$pathhost = $1;
		next;
	}
	if (/^from:\s*(.+)$/i) {
		$from = $1;
		next;
	}
	if (/^reply-to:\s*(.+)$/i) {
		$reply = $1;
		next;
	}
	if (/^control:\s*(\S+)/i) {
		$control = $1;
		next;
	}
}
close (ART);

if ( ! $reply ) {
	$reply = $from;
}

# Sanitize addresses

$from =~ s/\s*\(.+\)\s*//;
$from =~ s/\s*\".+\"\s*//;
$from =~ s/\s*<(.+)>\s*/$1/;
$reply =~ s/\s*\(.+\)\s*//;
$reply =~ s/\s*\".+\"\s*//;
$reply =~ s/\s*<(.+)>\s*/$1/;

# Check control trap

if ( $control !~ /^[A-Za-z]+$/ ) {
	print "Invalid control field: $control\n";
	exit 1
}

print "$control $from $reply $path $pathhost\n";

if ( -x "/usr/lib/news/bin/control/$control" ) {
	system("/usr/lib/news/bin/control/$control", $from, $reply,
		$path, $pathhost);
} else {
	printf "Unknown control $control\n";
	exit 1;
}

-- 
Julio Sanchez, SGI Soluciones Globales Internet
Tel: (91) 804 28 37 Fax: (91) 804 14 05  WWW: http://www.esegi.es
jsanchez@esegi.es jsanchez@gmv.es
 PGP Key fingerprint =  E5 29 93 6F 41 4E 00 E2  90 11 A1 8C 72 D0 DE 71 

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