Add salt to a bunch of groups
This commit is contained in:
parent
55d721e5b6
commit
a5a965adbd
@ -304,6 +304,9 @@ build-gentoo-chroot() {
|
|||||||
useradd salt -m -G wheel -s /bin/bash -u 1000 -U
|
useradd salt -m -G wheel -s /bin/bash -u 1000 -U
|
||||||
passwd salt
|
passwd salt
|
||||||
fi
|
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
|
# Configure Ansible user, his sudo rights are specifically in sudoers
|
||||||
if ! id ansible > /dev/null 2>&1; then
|
if ! id ansible > /dev/null 2>&1; then
|
||||||
|
Loading…
Reference in New Issue
Block a user