Skip to content

Commit

Permalink
GRMLBASE/21-usersetup: use adduser for adding user to group
Browse files Browse the repository at this point in the history
adduser >=3.122 no longer supports adding a user to a group via its
addgroup binary (see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664869), so let's
invoke adduser instead.

Closes: #115
  • Loading branch information
mika committed Jul 28, 2022
1 parent 482cb8d commit f131526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/grml/fai/config/scripts/GRMLBASE/21-usersetup
Expand Up @@ -26,7 +26,7 @@ fi
add_user_to_group() {
[ -n "$1" ] || return 1
if grep -q $1 $target/etc/group ; then
grep "$1:x:.*$USERNAME" $target/etc/group || $ROOTCMD addgroup $USERNAME $1
grep "$1:x:.*$USERNAME" $target/etc/group || $ROOTCMD adduser $USERNAME $1
fi
}

Expand Down

0 comments on commit f131526

Please sign in to comment.