diff --git a/gentoostrap.sh b/gentoostrap.sh index 0218b6c..5a4b4db 100755 --- a/gentoostrap.sh +++ b/gentoostrap.sh @@ -304,6 +304,9 @@ build-gentoo-chroot() { useradd salt -m -G wheel -s /bin/bash -u 1000 -U passwd salt fi + for group in audio cdrom floppy games usb video wheel; do + usermod -G "$group" -a salt || warn "Failed to add salt to group: $group" + done # Configure Ansible user, his sudo rights are specifically in sudoers if ! id ansible > /dev/null 2>&1; then