bin/87230: [PATCH] -G is ignored when adduser get accounts from file
Petr Rehor
prehor at gmail.com
Mon Oct 10 14:10:12 PDT 2005
>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 at 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:
More information about the freebsd-bugs
mailing list