On 7/30/22 03:22, Julien ÉLIE wrote:
Hi G.K.,
I managed to get INN2 installed and working locally. The Debian/Ubuntu
package is broken and would not install so I had to troubleshoot. No joy.
What problems did you encounter with the Debian/Ubuntu package? Did you open a bug report for it?
Not yet. See below.
How do I enable username/password authentication for all readers? What
config option in inn.conf or readers.conf or whatever will make it so:
Every reader, local or remote, must enter a username and password in
their reader software to post anything to any group, ever.
Stéphane gave you links to achieve that in this thread.
Could you please tell what should be improved in the first section of
the readers.conf man page ("IN A NUTSHELL")? It should normally have answered your question, but apparently isn't still clear enough.
Or maybe it just needs rednecked down with color ABC blocks. ;)
I
would be glad to improve it: what is missing or should be better
explained in that first section of the man page?
https://www.eyrie.org/~eagle/software/inn/docs/readers.conf.html
I'll have a look but not today. I must finish the grindstone list.
It also refers to the documentation of the -f flag of ckpasswd to
generate password hashes:
https://www.eyrie.org/~eagle/software/inn/docs/ckpasswd.html
I saw that part and got a bead on it. I'm leaning toward finding or
building a front end that automates all that. I'm leaning toward telnet
or ssh over a socat or s_server socket because I don't want another web
server with all its attack surface and complexity and a bunch of PHPoo
and graphical web sorcery just to negotiate a set of tokens to an email address.
Debian does not fully install the package and exits with unintelligible
errors which I failed to copypasta and forgot about after tinkering with
other things. I would have to scrub the system and re-install from
scratch to replicate the apt errors. Maybe later, since I'm still
tinkering with configuration and making notes so I can do it again later.
Find below systemd errors and how I fixed the problem.
Here is systemd output directly after install:
$ sudo journalctl -u inn2
Jul 20 10:55:35 dev systemd[1]: Starting LSB: INN news server...
Jul 20 10:55:36 dev inn2[31091]: * Starting news server innd
Jul 20 10:55:36 dev dma[31130]: new mail from user=news uid=9 envelope_from=<news@dev>
Jul 20 10:55:36 dev dma[31130]: mail to=<root> queued as
19c07f9.56392eebd8e0
Jul 20 10:55:36 dev dma[31131]: <root> trying delivery
Jul 20 10:55:36 dev dma[31131]: <root> delivery successful
Jul 20 10:55:36 dev inn2[31091]: ...done.
Jul 20 10:55:36 dev innd[31138]: SERVER descriptors 1023
Jul 20 10:55:36 dev innd[31138]: SERVER outgoing 1010
Jul 20 10:55:36 dev systemd[1]: Started LSB: INN news server.
Jul 20 10:55:36 dev innd[31138]: dbz: bad first line in .dir history file
Jul 20 10:55:36 dev innd[31138]: dbzinit: getconf failure
Jul 20 10:55:36 dev innd[31138]: can't dbzinit /var/lib/news/history
Numerical argument out of domain
Jul 20 10:55:36 dev innd[31138]: dbzclose: not opened!
Jul 20 10:55:36 dev innd[31138]: can't dbzclose /var/lib/news/history
Numerical argument out of domain
Jul 20 10:55:36 dev innd[31138]: SERVER can't open history /var/lib/news/history: Numerical argument out of domain
Jul 20 11:25:59 dev systemd[1]: Stopping LSB: INN news server...
Jul 20 11:26:00 dev inn2[35190]: * Stopping news server innd
Jul 20 11:26:00 dev inn2[35190]: ...done.
Jul 20 11:26:00 dev systemd[1]: inn2.service: Succeeded.
Jul 20 11:26:00 dev systemd[1]: Stopped LSB: INN news server.
First sudo apt-get install inn2, which unpacks everything then exits
with the errors. INN files are installed but do not run. Restarting the
systemd service fails. Invoking news.rc fails. I fixed the problem on
Debian this way:
$ sudo systemctl stop inn2
$ sudo -u news /usr/lib/news/bin/makehistory
$ sudo -u news /usr/lib/news/bin/makedbz
$ sudo systemctl start inn2
$ sudo journalctl -u inn2
Jul 20 17:42:31 dev systemd[1]: Starting LSB: INN news server...
Jul 20 17:42:33 dev systemd[1]: Started LSB: INN news server.
Jul 20 20:31:53 dev systemd[1]: Stopping LSB: INN news server...
Jul 20 20:31:53 dev inn2[38086]: * Stopping news server innd
Jul 20 20:31:54 dev inn2[38086]: ...done.
Jul 20 20:31:54 dev systemd[1]: inn2.service: Succeeded.
Jul 20 20:31:54 dev systemd[1]: Stopped LSB: INN news server.
Jul 20 20:32:06 dev systemd[1]: Starting LSB: INN news server...
Jul 20 20:32:06 dev inn2[38131]: * Starting news server innd
Jul 20 20:32:06 dev innd[38170]: SERVER descriptors 1023
Jul 20 20:32:06 dev innd[38170]: SERVER outgoing 1010
Jul 20 20:32:06 dev inn2[38131]: ...done.
Jul 20 20:32:06 dev systemd[1]: Started LSB: INN news server.
I would suggest a few shell commands cobbled together to check the
database, history, file permissions, etc. and other stuff that would
stop the server upon a botched install, and push it to the package
maintainer.
I will get back to you hopefully in a couple weeks when I can free up
time for this. To do a proper bug report I need to replicate on a fresh
system, then navigate the package maintainer's minefield of gotchas and
reasons we didn't even look at your bug report for the past 5 years, and
why your bug report is closed as a duplicate of this other bug report we
didn't look at for the past 5 years. ;)
BTW: Grumpy Smurf hates systemd. Nice going Debian, for welding Linux to systemd malware and making it so only heute-teute, artsy-fartsy
city-slickers can play.
SystemD was only ever a solution in search of a problem.
--
G.K.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)