🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92250

Re: INN2 set up user authentication via ckpasswd

#92250
From: Anonymous
Date: Sun, 13 Jul 2025 01:31
41 lines
2564 bytes
On Sat, 12 Jul 2025 17:25:36 -0500
Anonymous <anon@anon.anon> wrote:

> For latest version of INN2 in Debian stable.
> 
> I think using ckpasswd is the most viable option for authentication since it is simple to add and remove users and it is a flat text file without database bugs and vulnerabilities.
> 
> I need to prevent all non-authenticated users from posting to newsgroups and authenticate via ckpasswd.
> 
> How do I configure INN2 so that I can add users with ckpasswd and force INN2 to authenticate via ckpasswd?
> 
> If there is a better method I am all ears. Please don't suggest some 3rd party program that is not included in the Debian stable repos. Please don't suggest something that uses a database or some other attack surface generator. I'm not interested in complicated stuff like that.
> 

I added this to readers.conf:

auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/userdb"

I created a test user and got auth failure.

~ htpasswd -nbd test test > /etc/news/userdb

~ chown news:news /etc/news/userdb

~ stat /etc/news/userdb 
  File: /etc/news/userdb
  Size: 20        	Blocks: 8          IO Block: 4096   regular file
Device: 254,1	Inode: 257747      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    9/    news)   Gid: (    9/    news)

~ cat /etc/passwd | grep news
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin

In the telnet session:

authinfo user test
502 Authentication will fail
authinfo pass test
502 Authentication will fail

What am I missing?
Technical Details
Message-ID: <104v2af$31t1u$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!ygg-srl.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!paganini.bofh.team!tor-network!not-for-mail
References: <104und1$2shgo$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <104v2af$31t1u$1@paganini.bofh.team>
Subject: Re: INN2 set up user authentication via ckpasswd
Date: Sat, 12 Jul 2025 20:31:58 -0500
From: Anonymous <anon@anon.anon>
References: <104und1$2shgo$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!ygg-srl.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!paganini.bofh.team!tor-network!not-for-mail
Newsgroups: news.software.nntp
Organization: To protect and to server
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Jul 2025 01:32:00 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3208254"; posting-host="ui5sla3KlApQN4x/pNmfqg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MTYyLjIxMC4xNzMuMTc= --