🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by John F. Morse Fri, 09 Jun 2006 18:19
ctlinnd cancel INN 2.4.3 (20050407 prerelease)
#73691
Author: John F. Morse
Date: Fri, 09 Jun 2006 18:19
32 lines
2519 bytes
I had an 80s-something-year-old Windows user post six messages with an 
embedded/attached Hotbar spamware which he claimed he downloaded from 
SBC/Yahoo. (Google "hotbar" for more info.)

I was able to cancel five of the messages using  ctlinnd cancel '<the 
Message-ID string>'  but one message will not cancel.

I use tradspool, so I can ls the spool directory for this newsgroup. The 
message is still there but the other five are gone (using the message's 
Xref: entries to obtain the message number within this newsgroup).

Any ideas why this lone message will not delete?

Can I simply rm the message without wrecking some indexing database?

If I do rm the message, is there some ctlinnd or other rebuild command I 
should use to rebuild an index database, or will this be done 
automatically during the nightly cron jobs?

Finally, is there any way to use telnet to the NNTP port to cancel a 
message remotely? I use ssh, but was considering the use of another 
person to help with the administration. They would most likely be a 
Windows user who could telnet, but ssh is probably not available (maybe 
even me if I'm out of town and using a library computer for Internet 
access). Plus I really don't want to establish a user account to allow 
ssh, which would involve a lot of instruction, and require them to be 
the user news).

TIA

-- 
John
Re: ctlinnd cancel INN 2.4.3 (20050407 prerelease)
#73692
Author: Russ Allbery
Date: Fri, 09 Jun 2006 18:40
35 lines
2490 bytes
John F Morse <xanadu.bbs@invalid.net> writes:

> I had an 80s-something-year-old Windows user post six messages with an
> embedded/attached Hotbar spamware which he claimed he downloaded from
> SBC/Yahoo. (Google "hotbar" for more info.)

> I was able to cancel five of the messages using  ctlinnd cancel '<the
> Message-ID string>'  but one message will not cancel.

> I use tradspool, so I can ls the spool directory for this newsgroup. The
> message is still there but the other five are gone (using the message's
> Xref: entries to obtain the message number within this newsgroup).

> Any ideas why this lone message will not delete?

> Can I simply rm the message without wrecking some indexing database?

You can just delete the message and overview will catch up after the next
nightly expire.

> Finally, is there any way to use telnet to the NNTP port to cancel a
> message remotely?

You can write a cancel control message yourself, but if ctlinnd cancel
doesn't work, that isn't going to work either.  Ah, but I see that's not
the primary concern.  Hm.

Well, yes, you can, but the user has to post a properly formed cancel
control message per RFC 1036.

-- 
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: ctlinnd cancel INN 2.4.3 (20050407 prerelease)
#73693
Author: John F. Morse
Date: Fri, 09 Jun 2006 20:06
114 lines
5061 bytes
Russ Allbery wrote:

>John F Morse <xanadu.bbs@invalid.net> writes:
>
>  
>
>>I had an 80s-something-year-old Windows user post six messages with an
>>embedded/attached Hotbar spamware which he claimed he downloaded from
>>SBC/Yahoo. (Google "hotbar" for more info.)
>>    
>>
>
>  
>
>>I was able to cancel five of the messages using  ctlinnd cancel '<the
>>Message-ID string>'  but one message will not cancel.
>>    
>>
>
>  
>
>>I use tradspool, so I can ls the spool directory for this newsgroup. The
>>message is still there but the other five are gone (using the message's
>>Xref: entries to obtain the message number within this newsgroup).
>>    
>>
>
>  
>
>>Any ideas why this lone message will not delete?
>>    
>>
>
>  
>
>>Can I simply rm the message without wrecking some indexing database?
>>    
>>
>
>You can just delete the message and overview will catch up after the next
>nightly expire.
>  
>


Even with "groupbaseexpiry: true" and then "*:A:never:never:never" in 
expire.ctl ?

IOW, I save everything (low volume, local postings only), so nothing is 
expired nightly. If there is no nightly expiry, will overview be rebuilt 
by actually reading the message numbers from the spool?

In the mean time, if the message is missing from the 
/var/spool/news/articles/newsgroup will access by users return an error 
message?

I certainly could test this Russ, but I'm a very careful person around 
something that is working online. I thought it would be better to ask 
first instead of a headache later. ;-)

One thing about INN, it is so maintenance free that there is very little 
time spent learning from exposure to experiences. Just those rare 
oddities that pop up from time to time, usually caused by user actions.

Which brings up a side question: I had to quarantine this user until he 
could remove his spyware. I simply "commented out ( # )" his 
username:password entry in my ckpasswd password file. I do see 
news.notice entries stating a failure to authenticate.:

Jun  9 14:42:00 localhost nnrpd[17481]: 
adsl-154-167-xx.mco.bellsouth.net auth_err ckpasswd: user soandso unknown
Jun  9 14:42:00 localhost nnrpd[17481]: 
adsl-154-167-xx.mco.bellsouth.net bad_auth

My question: Will this actually comment-out this user's authentication, 
or could a user prepend the number sign in front of their usual username 
and still gain access?

Never mind; I see man ckpasswd(8) under -f filename "Lines starting with 
a number sign (`#') are ignored."

This is probably the best method of removing authentication for a 
unknown length of time. I could even add the date and reason after their 
password for future reference.


>>Finally, is there any way to use telnet to the NNTP port to cancel a
>>message remotely?
>>    
>>
>
>You can write a cancel control message yourself, but if ctlinnd cancel
>doesn't work, that isn't going to work either.  Ah, but I see that's not
>the primary concern.  Hm.
>
>Well, yes, you can, but the user has to post a properly formed cancel
>control message per RFC 1036.
>  
>


I'll do some reading here. I've tried creating a NNTP account in a GUI 
newsrearder, using the identical username, password and other header 
info of the real user, but the cancel always fails. Perhaps the news 
reader is examining the "sent" file to see if that message actually 
exists from a previous post. Testing with plain telnet should eliminate 
this type of checking.

Having the ability to use a properly-formatted cancel would allow the 
control message to propagate to my other peering server, which I use for 
backup at present. Otherwise it is two ssh sessions with ctlinnd cancel.

-- 
John
Re: ctlinnd cancel INN 2.4.3 (20050407 prerelease)
#73694
Author: Russ Allbery
Date: Fri, 09 Jun 2006 20:13
57 lines
3532 bytes
John F Morse <xanadu.bbs@invalid.net> writes:
> Russ Allbery wrote:

>> You can just delete the message and overview will catch up after the next
>> nightly expire.

> Even with "groupbaseexpiry: true" and then "*:A:never:never:never" in
> expire.ctl ?

Yes.  It still removes entries for articles that no longer exist provided
that you run expire at all.

> In the mean time, if the message is missing from the
> /var/spool/news/articles/newsgroup will access by users return an error
> message?

Yes.

> One thing about INN, it is so maintenance free that there is very little
> time spent learning from exposure to experiences. Just those rare
> oddities that pop up from time to time, usually caused by user actions.

Yeah, and I really wish I had more free time to fix more of those
oddities.  Unfortunately, INN is about fifth in my list of priorities
right now.  :/

> Which brings up a side question: I had to quarantine this user until he
> could remove his spyware. I simply "commented out ( # )" his
> username:password entry in my ckpasswd password file. I do see
> news.notice entries stating a failure to authenticate.:

> Jun  9 14:42:00 localhost nnrpd[17481]: adsl-154-167-xx.mco.bellsouth.net
> auth_err ckpasswd: user soandso unknown
> Jun  9 14:42:00 localhost nnrpd[17481]: adsl-154-167-xx.mco.bellsouth.net
> bad_auth

> My question: Will this actually comment-out this user's authentication, or
> could a user prepend the number sign in front of their usual username and
> still gain access?

It will actually comment it out.  ckpasswd skips lines starting with #.

> I'll do some reading here. I've tried creating a NNTP account in a GUI
> newsrearder, using the identical username, password and other header
> info of the real user, but the cancel always fails. Perhaps the news
> reader is examining the "sent" file to see if that message actually
> exists from a previous post. Testing with plain telnet should eliminate
> this type of checking.

It's possible that the news reader is preventing you from sending the
cancel, yeah.  Some news readers do that.

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