Subject: pkg/24471: news/inn cannot be started as installed
To: None <gnats-bugs@gnats.netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
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
>Closed-Date:
>Last-Modified:
>Originator:     Olaf Seibert
>Release:        <NetBSD-current source date>
>Organization:
>Environment:
	
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

>Description:
	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/rc.news 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/rc.news"
	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
	/sbin/nologin.

	To avoid this problem, you can change the command to
	
	SH=/bin/sh su -m news -c "/usr/pkg/inn/bin/rc.news 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).

>How-To-Repeat:
	Install inn. Try to start it.
>Fix:
	See above.

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

>Release-Note:
>Audit-Trail:
>Unformatted: