Merge branch 'master' into 'master'

kali-user-setup: Add kali user to dialout group

See merge request kalilinux/build-scripts/live-build-config!8
merge-requests/16/head
Raphaël Hertzog 4 years ago
commit 86fbb065f0

@ -13,10 +13,13 @@ configure_zsh() {
chsh --shell /usr/bin/zsh root
}
configure_kaboxer() {
configure_usergroups() {
addgroup --system kaboxer || true # Ensures the group exists
# kaboxer - for kaboxer
# dialout - for serial port access
kali_groups="kaboxer,dialout"
adduser kali kaboxer
usermod -a -G $kali_groups kali
}
# Avoid configuring multiple times in case persistence is enabled
@ -30,8 +33,8 @@ usermod -p 'AqLUsDitNnTsw' kali
# Change default shell to zsh
configure_zsh
# Add kali user to the kaboxer group
configure_kaboxer
# Add kali user to additional groups
configure_usergroups
# Remember that this script has been run
touch /var/lib/live/config/kali-user-setup

Loading…
Cancel
Save