🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92253

Re: INN2 set up user authentication via ckpasswd

#92253
From: Julien ÉLIE
Date: Mon, 14 Jul 2025 05:00
51 lines
2641 bytes
Hi,

> I added this to readers.conf:
> 
> auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/userdb"

What is the whole contents of your readers.conf file?
It needs at least something like:

auth "users" {
     auth: "ckpasswd -f /etc/news/userdb"
     default: "<unauthenticated>"
}

access "authenticatedpeople" {
     users: "*"
     newsgroups: "*"
}

access "restrictive" {
     users: "<unauthenticated>"
     newsgroups: "!*"
}

See https://www.eyrie.org/~eagle/software/inn/docs/readers.conf.html
The rights for authenticated people (and for unauthenticated people) 
have to be explained.


> I created a test user and got auth failure.

Here, if you successfully authenticate with the "test" user, his 
assigned identity is "test" in the "users" keyword of access blocks. 
When authentication fails, the identity is "<unauthenticated>" (the 
default value of the auth block).


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

More secure hashes are recommended, like ones obtained with:
     openssl passwd -5 test

   https://www.eyrie.org/~eagle/software/inn/docs/ckpasswd.html

-- 
Julien ÉLIE

« – Hou hou !
   – Ouille, ouille !
   – Ouf !
   – Où ouf ? » (Astérix)
Technical Details
Message-ID: <10522t1$28l4l$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!ygg-srv.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!news.trigofacile.com!.POSTED.2001:861:3f81:7990:7cbd:4d46:6e31:a9c8!not-for-mail
References: <104und1$2shgo$1@paganini.bofh.team> <104v2af$31t1u$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <10522t1$28l4l$1@news.trigofacile.com>
Subject: Re: INN2 set up user authentication via ckpasswd
Date: Mon, 14 Jul 2025 07:00:16 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <104und1$2shgo$1@paganini.bofh.team> <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-srv.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!news.trigofacile.com!.POSTED.2001:861:3f81:7990:7cbd:4d46:6e31:a9c8!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 14 Jul 2025 05:00:17 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2001:861:3f81:7990:7cbd:4d46:6e31:a9c8";
 logging-data="2380949"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eHBN4korkKfygjpfs++tlZklG+Q= sha256:Ql0RqhDRzli3LGZrX7QzqW7nzXO6EhS56mVGXwIjw6E=
 sha1:+OGKUkiEQejQnGOCbYy5WzKk23k= sha256:KHqjoXcgq9E+rg3p7XWfcEEvWlidL3UvZQT9yujFUZs=
In-Reply-To: <104v2af$31t1u$1@paganini.bofh.team>