RE: (sn) a compile error?

"Reisfeld, Brad " <[email protected]>
Newsgroups gmane.network.sn
Message-ID <[email protected]>
     Hi,
     Using the inetd.conf entry and script in Phillips email, when I try to 
     post, I get
     
     "A News (NNTP) error occurred: Posting failed"
     
     Any idea what is going wrong?
     
     
     Other info
     ----------
     
     hosts.allow:
     /usr/local/sn/snntpd: ALL : setenv = POSTING_OK 
     
     hosts.deny:
     #
     
     no .nopost files anywhere
     
     I am using sn0.3.2 on Linux Mandrake.
     
     Thanks.
     
     -Brad


______________________________ Reply Separator
_________________________________
Subject: Re: (sn) a compile error?
Author:  "Phillip Deackes" <SMTP:[email protected]> at CARMAIL
Date:    8/25/00 4:21 AM


[email protected] wrote:
> On Thu, 24 Aug 2000, Neil D wrote: 
>
> But i can't post anything.  It says no posting is allowed. 
>
> The line I added to my /etc/hosts.allow is
> /usr/sbin/sn/snntpd: ALL: setenv = POSTING_OK 
>
> I tried adding a line to my hosts.deny and then I removed it. 
>
> There are no .nopost files anywhere. 
>
> I even combed through POST and wasn't able to find anything out of 
> place or
> seeemingly incorrect.
>
> Lastly I went through the code of snntpd.c and changed all the values 
> of
> posting variable to 1.  But now I get a 
> 200 Hi, you can post.
> message.  But still I can't post..
     
When I started using sn I couldn't post either. I emailed Harold, the 
author, and he sent back the following:
     
"In your case, dynamic IP and (I assume) no dialup hosts, I would do 
this:
In place of the inetd.conf line, use
nntp stream tcp nowait SNUID.SNGID BINDIR/nntpd nntpd 
and create a script BINDIR/nntpd:
#!/bin/sh
exec env POSTING_OK= BINDIR/snntpd logger -t sn -p news.info 
# EOF
In place of SNUID.SNGID you can use root.root. 
Don't forget to hup inetd.
     
This was the invocation I had recommended in previous versions;
I'm going to revert to it because it allows greater tweakability by 
a non-root news admin."
     
Hope this helps.
     
     
--
Phillip Deackes
Using Storm Linux
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.