kali-finish-install: Add kali user to dialout group

This does away with the kaboxer specific setup that was just adding the kali user to the kaboxer group.  And make it a bit easier to add the user to multiple groups if we decide we want to add them to more in the future.
merge-requests/16/head
Steev Klimaszewski 4 years ago
parent 1205bf686f
commit 3544cf1c30

@ -51,17 +51,21 @@ configure_zsh() {
done done
} }
configure_kaboxer() { # This is generically named in case we want to add other groups in the future.
# Create the group if needed configure_usergroups() {
addgroup --system kaboxer || true # Create the kaboxer group if needed
addgroup --system kaboxer || true
# Add the users to the group # kaboxer - for kaboxer
for user in $(get_user_list); do # dialout - for serial access
echo "INFO: adding user '$user' to group 'kaboxer'" kali_groups="kaboxer,dialout"
adduser $user kaboxer || true
done for user in $(get_user_list); do
echo "INFO: adding user '$user' to groups '$kali_groups'"
usermod -a -G "$kali_groups" $user || true
done
} }
configure_sources_list configure_sources_list
configure_zsh configure_zsh
configure_kaboxer configure_usergroups

Loading…
Cancel
Save