Date: Tue, 18 Apr 1995 17:24:04 -0700 From: asami@cs.berkeley.edu (Satoshi Asami | =?ISO-2022-JP?B?GyRCQHUbKEI=?= =?ISO-2022-JP?B?GyRCOCsbKEIgGyRCOC0bKEI=?=) To: rgrimes@gndrsh.aac.dev.com Cc: adam@FreeBSD.org, pst@FreeBSD.org, ports@FreeBSD.org Subject: Re: cnews fails if user "news" doesn't exist Message-ID: <199504190024.RAA23771@forgery.CS.Berkeley.EDU> In-Reply-To: <199504181740.KAA12813@gndrsh.aac.dev.com> (rgrimes@gndrsh.aac.dev.com)
next in thread | previous in thread | raw e-mail | index | archive | help
* 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504190024.RAA23771>