Article View: news.software.nntp
Article #64351readers.conf problem
From: Alain Hamel
Date: Tue, 11 Mar 2003 18:31
Date: Tue, 11 Mar 2003 18:31
57 lines
2790 bytes
2790 bytes
Hi,
I try to set a server for authanticated user only. I have put those
setting in my readers.conf file.
auth "localhost" {
hosts: "localhost, 127.0.0.1, stdin"
default: "<localhost>"
}
access "localhost" {
users: "<localhost>"
newsgroups: "*"
access: "RPA"
}
auth "everyone" {
# hosts: "*, !localhost, !127.0.0.1, !stdin"
user: "ckpasswd -f /usr/local/news/db/newsusers"
default: "<everyone>"
}
access "everyone" {
users: "<everyone>"
newsgroups: "local.*"
access: "RP"
}
Everytime I try to get the ckpasswd line in to check at user account I
get no connection. There is what I get in my log.
Mar 11 12:54:32 lost nnrpd[29397]: [ID 120785 news.debug] Reading config
from /usr/local/news/etc/inn.conf
Mar 11 12:54:32 lost nnrpd[29397]: [ID 998472 news.warning]
lost.somedomain.com connect
Mar 11 12:54:32 lost nnrpd[29397]: [ID 572399 news.debug] Reading access
from /usr/local/news/etc/readers.conf
Mar 11 12:54:32 lost nnrpd[29397]: [ID 294702 news.debug] Auth strategy
'localhost' does not match client. Removing.
Mar 11 12:54:32 lost nnrpd[29397]: [ID 936603 news.error]
lost.somedomain.com syntax error in
/usr/local/news/etc/readers.conf(13), Unexpected token.
Mar 11 12:54:32 lost nnrpd[29397]: [ID 452021 news.warning]
lost.somedomain.com times user 0.010 system 0.030 elapsed 0.009
If I uncomment the host line and comment user in the everyone auth
everything works without passwd checcking. But as soon as I put the
ckpasswd line in I allways get that unexpected token... What does it
mine? What is wrong in my setup?
Thanks,
Alain
Technical Details
Message-ID:
<3E6E2B7E.10401@notremusique.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3E6E2B7E.10401@notremusique.ca> Subject: readers.conf problem Date: Tue, 11 Mar 2003 13:31:26 -0500 From: Alain Hamel <ahamel@notremusique.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020921 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 56 NNTP-Posting-Host: 199.243.241.218 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1047407585 199.243.241.218 (Tue, 11 Mar 2003 13:33:05 EST) NNTP-Posting-Date: Tue, 11 Mar 2003 13:33:05 EST Organization: Bell Sympatico