This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/scripts/_groups_install

14 lines
283 B
Bash
Executable File

#!/bin/sh
for g in audio video input bluetooth wheel _seatd kvm docker; do
if
cat /etc/group |
cut -d: -f1 |
grep "^${g}\$" > /dev/null
then
sudo usermod "$USER" -aG "$g" &
else
echo "warning: group $g does not exist"
fi
done