From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 10 21:10:12 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B05316A41F for ; Mon, 10 Oct 2005 21:10:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26B1C43D4C for ; Mon, 10 Oct 2005 21:10:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9ALA84q058760 for ; Mon, 10 Oct 2005 21:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9ALA8x9058759; Mon, 10 Oct 2005 21:10:08 GMT (envelope-from gnats) Resent-Date: Mon, 10 Oct 2005 21:10:08 GMT Resent-Message-Id: <200510102110.j9ALA8x9058759@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Petr Rehor Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E75F116A41F; Mon, 10 Oct 2005 21:06:26 +0000 (GMT) (envelope-from prehor@gmail.com) Received: from fw.ege.cz (fw.ege.cz [193.179.248.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 561FC43D45; Mon, 10 Oct 2005 21:06:26 +0000 (GMT) (envelope-from prehor@gmail.com) Received: from ftp.ege.cz ([193.85.228.180]) by fw.ege.cz (8.13.1/8.13.1) with ESMTP id j9AL4eYc059973; Mon, 10 Oct 2005 23:04:40 +0200 (CEST) (envelope-from reho@ftp.ege.cz) Received: from ftp.ege.cz (localhost [127.0.0.1]) by ftp.ege.cz (8.13.1/8.13.1) with ESMTP id j9AL3ecc010486; Mon, 10 Oct 2005 23:03:40 +0200 (CEST) (envelope-from reho@ftp.ege.cz) Received: (from root@localhost) by ftp.ege.cz (8.13.1/8.13.1/Submit) id j9AL3eM4010485; Mon, 10 Oct 2005 23:03:40 +0200 (CEST) (envelope-from reho) Message-Id: <200510102103.j9AL3eM4010485@ftp.ege.cz> Date: Mon, 10 Oct 2005 23:03:40 +0200 (CEST) From: Petr Rehor To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Mike Makonnen Subject: bin/87230: [PATCH] -G is ignored when adduser get accounts from file X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Petr Rehor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 21:10:12 -0000 >Number: 87230 >Category: bin >Synopsis: [PATCH] -G is ignored when adduser get accounts from file >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 10 21:10:08 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Petr Rehor >Release: FreeBSD 5.3-RELEASE-p22-i386 i386 >Organization: >Environment: System: FreeBSD ftp.ege.cz 5.3-RELEASE-p22-i386 FreeBSD 5.3-RELEASE-p22-i386 #0: Thu Sep 29 23:59:09 UTC 2005 root@marvin.rx.cz:/usr/obj/usr/src/sys/GENERIC i386 >Description: Additional groups are not set when adduser get accounts from file. >How-To-Repeat: echo usr1::nobody:nobody::::::password1 | adduser -G nogroup -f - >Fix: --- adduser.diff begins here --- --- adduser.orig Mon Oct 10 22:02:17 2005 +++ adduser Mon Oct 10 22:19:49 2005 @@ -585,6 +585,14 @@ input_from_file() { _field= + ugroups="$defaultgroups" + for i in $ugroups; do + if ! ${PWCMD} show group $i > /dev/null 2>&1; then + echo "Group $i does not exist!" + exit 1 + fi + done + while read -r fileline ; do case "$fileline" in \#*|'') --- adduser.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: