🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88494

Re: readers.conf authentication

#88494
From: Russ Allbery
Date: Sat, 10 Oct 2020 17:18
28 lines
2012 bytes
Jason Evans <jsevans@theuse.net> writes:

> I recently set up my first news server. I'm no longer having any
> problems with configuring peers and everything seems to be working, but
> I can't get external authentication working. Right now, I am accessing
> the server via ssh and using alpine locally.

> I would like to authenticate against /etc/shadow. I plan on only having
> a handful of trusted external users, so I'm not too concerned with the
> security issues with this.

I'm not sure if this is the problem, but given that you've already set up
PAM authentication, you want just ckpasswd, not ckpasswd -s.  Requesting
authentication against /etc/shadow with -s disables support for PAM
authentication.  (This isn't entirely clear from the documentation.)

PAM will take care of changing privileges so that it can check the
password against /etc/shadow, so you don't have to mess around with
permissions, which are easy to get wrong.

These days, the -s option is probably only useful for systems that don't
have PAM.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87sgamj8z8.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <alpine.DEB.2.22.394.2010101557070.2041@theuse.net>

Show Full Headers
Complete Article Headers
Message-ID: <87sgamj8z8.fsf@hope.eyrie.org>
Subject: Re: readers.conf authentication
Date: Sat, 10 Oct 2020 10:18:03 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <alpine.DEB.2.22.394.2010101557070.2041@theuse.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org; logging-data="12002"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Cancel-Lock: sha1:6+0/Fwr1U5tGam9wRIN9F+uHm48=