From owner-freebsd-ports Tue Apr 18 17:24:16 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA28436 for ports-outgoing; Tue, 18 Apr 1995 17:24:16 -0700 Received: from forgery.CS.Berkeley.EDU (forgery.CS.Berkeley.EDU [128.32.33.75]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id RAA28430 ; Tue, 18 Apr 1995 17:24:15 -0700 Received: (from asami@localhost) by forgery.CS.Berkeley.EDU (8.6.11/8.6.9) id RAA23771; Tue, 18 Apr 1995 17:24:04 -0700 Date: Tue, 18 Apr 1995 17:24:04 -0700 Message-Id: <199504190024.RAA23771@forgery.CS.Berkeley.EDU> To: rgrimes@gndrsh.aac.dev.com CC: adam@FreeBSD.org, pst@FreeBSD.org, ports@FreeBSD.org In-reply-to: <199504181740.KAA12813@gndrsh.aac.dev.com> (rgrimes@gndrsh.aac.dev.com) Subject: Re: cnews fails if user "news" doesn't exist From: asami@cs.berkeley.edu (Satoshi Asami | =?ISO-2022-JP?B?GyRCQHUbKEI=?= =?ISO-2022-JP?B?GyRCOCsbKEIgGyRCOC0bKEI=?=) Sender: ports-owner@FreeBSD.org Precedence: bulk * I think the first part is fine about telling the person to add the * user ``news''. And I can even live with the automatic call to adduser, * since it does not actually go and do it all on it's own. You should * probably add to the first echo so that it is more like this: * if ! id -u news > /dev/null 2>&1; then * echo "You need to add the well known account \"news\" to install" * echo "this package. It normally has a uid of 8 and a gid of 8." * echo "To maintain compatibility with future releases of FreeBSD it" * echo "is highly recommended that you add this line to your passwd file:" * echo "news:*:8:8::0:0:News Subsystem,,,:/:/nonexistent" * ... Hmm, this is great. Can we let adduser do this in "batch" mode? (From my browse at the man page, it doesn't seem so, but....) Then we can just ask the user yes or no, and tell them to invoke adduser themselves if they say no. Since this is not really a "new" account, just supplying something that was missing by mistake, it would be much better if we can unload users' as much as possible.... Satoshi