Re: a compile error?

Phillip Deackes <[email protected]>
Newsgroups gmane.network.sn
Message-ID <E13SEkC-0004UK-00@scgf>
[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.