🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Tomi Hakala Thu, 26 Jul 2001 22:57
Transit INN 2.3.2 dying on a control messages(?)
#53489
Author: Tomi Hakala
Date: Thu, 26 Jul 2001 22:57
20 lines
1659 bytes
Hello,

I have new transit server running INN 2.3.2 and now I'm experiencing
quite annoying problem with it. INN dies sporadicaly (couple times on
a week) with error message like this in news.crit:

Jul 27 01:40:48 newsfeed innd: SERVER cant exec in /news/bin/control/. Permission denied

I'm thinking that it might be a control messages which is causing
this as INN is trying to excute something under ~news/bin/control.

Does anyone have a better idea which is causing this and how to fix
the problem ?

If you need samples of INN's configs just ask.

-- 
Tomi Hakala
tomi.hakala@clinet.fi
Re: Transit INN 2.3.2 dying on a control messages(?)
#53490
Author: Russ Allbery
Date: Thu, 26 Jul 2001 23:48
21 lines
1819 bytes
Tomi Hakala <tomi.hakala@clinet.fi> writes:

> I have new transit server running INN 2.3.2 and now I'm experiencing
> quite annoying problem with it. INN dies sporadicaly (couple times on
> a week) with error message like this in news.crit:

> Jul 27 01:40:48 newsfeed innd: SERVER cant exec in /news/bin/control/. Permission denied

> I'm thinking that it might be a control messages which is causing
> this as INN is trying to excute something under ~news/bin/control.

Are you running controlchan?  If not, try switching to controlchan and see
if that fixes the problem.  The old control message code is bit-rotted and
has been ripped out completely for INN 2.4.

-- 
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: Transit INN 2.3.2 dying on a control messages(?)
#53498
Author: Matti Saarinen
Date: Fri, 27 Jul 2001 08:36
91 lines
4166 bytes
Russ Allbery <rra@stanford.edu> writes:

> Tomi Hakala <tomi.hakala@clinet.fi> writes:
> 
>> Jul 27 01:40:48 newsfeed innd: SERVER cant exec in /news/bin/control/. Permission denied
> 
> Are you running controlchan?  

     I am runnig controlchan and have noticed similar messages. Here
     is an example of one article the processing of which has resulted
     in the syslog message above:

===================================================================


Path: news.cc.tut.fi!levitin.saunalahti.fi!nntp.inet.fi!inet.fi!newsfeed1.funet.fi!newsfeeds.funeti!skynet.be!newspeer.clara.net!news.clara.net!news-hub.cableinet.net!blueyonder!internal-news-hub.bleinet.net!news1.cableinet.net.POSTED!not-for-mail
From: Mr Misc <mr_misc@blueyonder.co.uk_DEL_THIS>
Control: .
Newsgroups: alt.games.anarchy-online
Approved: .
Subject: Re: A MUST HAVE for this game...
Keywords: .
Summary: .
Sender: mr_misc@blueyonder.co.uk_DEL_THIS
Organization: Misc Organisation
Reply-To: mr_misc@blueyonder.co.uk_DEL_THIS
Message-ID: <3u61mt4p97kohv0qro0v5u9mbg1nltthmp@4ax.com>
References: <JrB77.1$f65.1368@bin2.nnrp.aus1.giganews.com> <8dqtltgkac2a43gvmcee47bd0oisa8fhru@4axom> <tlu6c5fnkr3412@news.supernews.com>
X-Newsreader: Forte Agent 1.8/32.548
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 9
Date: Thu, 26 Jul 2001 22:40:49 GMT
NNTP-Posting-Host: 62.31.146.109
X-Complaints-To: http://www.blueyonder.co.uk/abuse
X-Trace: news1.cableinet.net 996187249 62.31.146.109 (Thu, 26 Jul 2001 23:40:49 BST)
NNTP-Posting-Date: Thu, 26 Jul 2001 23:40:49 BST
Xref: news.cc.tut.fi control:4903665

On Wed, 25 Jul 2001 19:09:57 -0000, Zenin <zenin@rhps.org> wrote:

>       I can't find anything to adjust the disk caching algorithms of
>       W2k...which is bloody annoying.

O&O CleverCache (www.oosoft.com).  Also, O&O Defrag by the same
company is the best NT/2000 defragger.  O&O BlueCon is indispensable
for rescuing from a boot failure (registry/service problems, etc.)..


===================================================================



     The problem appears to be in these lines of the controlchan
     script:

-----line 181
    $progname = lc($hdrval{Control});
  }
  
  next CHANITEM if ($progname =~ /^(cancel)$/);
  
  if ($progname !~ /(^[a-z]+$)/) {
    logmsg ('notice', 'Naughty control in article %s', $msgid);
  } else {
    $progname = $1;
  }
-----line 190


     Now the the variable $progname contains value '.' and the message
     is logged. After the the execution of the script continues and it
     tries to run the program $progname.


-----line 238
    $progname = $inn::controlprogs . '/' . $progname ;
    if (-e $progname) {
      system($progname, $hdrval{Sender}, $hdrval{'Reply-To'},
             $token, $sitepath);
-----line 241

     I think the easiest way to fix this would be to change 
     (-e $progname) to (-f $progname && -x $progname).


-- 
- Matti -
Re: Transit INN 2.3.2 dying on a control messages(?)
#53519
Author: Russ Allbery
Date: Sat, 28 Jul 2001 09:37
77 lines
3345 bytes
Matti Saarinen <mjs@cc.tut.fi> writes:

>      I am runnig controlchan and have noticed similar messages. Here
>      is an example of one article the processing of which has resulted
>      in the syslog message above:

[...]

>      The problem appears to be in these lines of the controlchan
>      script:

> -----line 181
>     $progname = lc($hdrval{Control});
>   }
  
>   next CHANITEM if ($progname =~ /^(cancel)$/);
  
>   if ($progname !~ /(^[a-z]+$)/) {
>     logmsg ('notice', 'Naughty control in article %s', $msgid);
>   } else {
>     $progname = $1;
>   }
> -----line 190

Thanks.  Fixed in STABLE thusly:

Index: controlchan.in
===================================================================
RCS file: /dist1/cvs/isc/inn/inn/backends/Attic/controlchan.in,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 controlchan.in
--- controlchan.in      2000/09/19 06:31:40     1.3.2.1
+++ controlchan.in      2001/07/28 09:29:38
@@ -185,6 +185,7 @@
   
   if ($progname !~ /(^[a-z]+$)/) {
     logmsg ('notice', 'Naughty control in article %s', $msgid);
+    next;
   } else {
     $progname = $1;
   }

Index: art.c
===================================================================
RCS file: /dist1/cvs/isc/inn/inn/innd/art.c,v
retrieving revision 1.131.2.14
diff -u -r1.131.2.14 art.c
--- art.c       2001/02/06 15:07:07     1.131.2.14
+++ art.c       2001/07/28 09:35:35
@@ -24,6 +24,10 @@
 #define EXECUTE_BITS   0111
 #endif /* defined(S_IXUSR) */
 
+#if    !defined(S_ISDIR)
+#define S_ISDIR(mode)  (((mode) & 0xF000) == 0x4000)
+#endif
+
 
 /*
 **  For speed we build a binary tree of the headers, sorted by their
@@ -1137,7 +1141,8 @@
        FileGlue(buff, innconf->pathcontrol, '/', _PATH_BADCONTROLPROG);
     else {
        FileGlue(buff, innconf->pathcontrol, '/', Control);
-       if (stat(buff, &Sb) < 0 || (Sb.st_mode & EXECUTE_BITS) == 0)
+       if (stat(buff, &Sb) < 0 || (Sb.st_mode & EXECUTE_BITS) == 0
+         || S_ISDIR(Sb.st_mode))
            FileGlue(buff, innconf->pathcontrol, '/', _PATH_BADCONTROLPROG);
     }
 

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