Subject: pkg/24471: news/inn cannot be started as installed
To: None <>
From: Olaf Seibert <>
List: netbsd-bugs
Date: 02/18/2004 14:58:00
>Number:         24471
>Category:       pkg
>Synopsis:       news/inn cannot be started as installed
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 18 13:59:00 UTC 2004
>Originator:     Olaf Seibert
>Release:        <NetBSD-current source date>
NetBSD rode 1.6.1 NetBSD 1.6.1 (RODE) #6: Wed Dec 17 13:10:00 CET 2003     root@rode:/usr/src/sys/arch/i386/compile/RODE i386

	When inn is installed, it has a rc.d/innd script which contains
	(among others) the following line:

	su news -c "/usr/pkg/inn/bin/ start" >/dev/null

	This does not work.
	The password file contains the following line:

	news:*:6:8:Network News:/var/spool/news:/sbin/nologin

	The shell is /sbin/nologin. Therefore, if the above command is
	run, you get the following error message:

	bash-2.05b# su news -c "/usr/pkg/inn/bin/"
	This account is currently not available.

	Due to the redirection one normally doesn't see the error, and
	it is completely unclear what happens. The error is printed by

	To avoid this problem, you can change the command to
	SH=/bin/sh su -m news -c "/usr/pkg/inn/bin/ start"

	(and change its other similar occurrences too).

	Now I get innd started, but it logs various problems that may
	be caused by trying to use a spool directory and history file
	from a previous version. (Which would not be nice, if it is
	indeed impossible to upgrade inn without erasing the spool).

	Install inn. Try to start it.
	See above.

___ Olaf 'Rhialto' Seibert - rhialto@       -- "What good is a Ring of Power
\X/            -- if you're Speak." - Agent Elrond