Date: Mon, 10 Oct 2005 23:03:40 +0200 (CEST) From: Petr Rehor <prehor@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Mike Makonnen <mtm@FreeBSD.org> Subject: bin/87230: [PATCH] -G is ignored when adduser get accounts from file Message-ID: <200510102103.j9AL3eM4010485@ftp.ege.cz> Resent-Message-ID: <200510102110.j9ALA8x9058759@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510102103.j9AL3eM4010485>