From owner-freebsd-current Tue Jan 21 14:50:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0271237B401 for ; Tue, 21 Jan 2003 14:50:36 -0800 (PST) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3079143ED8 for ; Tue, 21 Jan 2003 14:50:35 -0800 (PST) (envelope-from hetzels@westbend.net) Received: from WBIw009.westbend.net (wbiw009 [216.47.253.29]) by mail.westbend.net (8.12.6/8.12.6) with ESMTP id h0LMoQSG072651 for ; Tue, 21 Jan 2003 16:50:26 -0600 (CST) (envelope-from hetzels@westbend.net) Received: from WBIw009.westbend.net (localhost [127.0.0.1]) by WBIw009.westbend.net (8.12.6/8.12.6) with ESMTP id h0LMoOvY029935 for ; Tue, 21 Jan 2003 16:50:26 -0600 (CST) (envelope-from hetzels@westbend.net) Received: (from root@localhost) by WBIw009.westbend.net (8.12.6/8.12.6/Submit) id h0LMoOXW029934 for freebsd-current@freebsd.org; Tue, 21 Jan 2003 16:50:24 -0600 (CST) Date: Tue, 21 Jan 2003 16:50:24 -0600 (CST) Message-Id: <200301212250.h0LMoOXW029934@WBIw009.westbend.net> From: "Scot W. Hetzel" To: FreeBSD-Current Subject: Adduser difference between 5.0 and earlier versions X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=0.5 required=8.0 tests=SPAM_PHRASE_00_01,TO_LOCALPART_EQ_REAL version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I noticed that adduser in 5.0, only allows you to add one user in interactive mode. The previous version of adduser would ask you if you wanted to add another user. Attached is a patch which puts this feature back into adduser. Scot Index: adduser.sh =================================================================== RCS file: /home/ncvs/src/usr.sbin/adduser/adduser.sh,v retrieving revision 1.3 diff -u -r1.3 adduser.sh --- adduser.sh 3 Dec 2002 05:41:09 -0000 1.3 +++ adduser.sh 21 Jan 2003 22:35:39 -0000 @@ -870,5 +870,22 @@ fi fi else - input_interactive + while : ; do + input_interactive + echo -n "Add another user? (yes/No): " + read _input + [ -z "$_input" ] && _input="No" + case $_input in + [Yy][Ee][Ss]|[Yy][Ee]|[Yy]) + continue + ;; + [Nn][Oo]|[Nn]) + echo "Goodbye!" + ;; + *) + continue + ;; + esac + break + done fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message