Use wheel group for opendoas configuration, rather than username

This commit is contained in:
2023-12-06 18:08:07 -05:00
parent 95f7b80499
commit 5c32966232
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -45,16 +45,16 @@ grub-mkconfig -o /boot/grub/grub.cfg
# account setup
groupadd libvirt
useradd -m -g users -G uucp,libvirt "$username"
useradd -m -g users -G wheel,uucp,libvirt "$username"
echo "$userpassword
$userpassword
" | passwd "$username"
# opendoas configuration
echo "permit persist keepenv $username as root
permit nopass $username as root cmd /usr/local/bin/powerset.sh
permit nopass $username as root cmd /usr/bin/poweroff
permit nopass $username as root cmd /usr/bin/reboot
echo "permit persist keepenv :wheel as root
permit nopass :wheel as root cmd /usr/local/bin/powerset.sh
permit nopass :wheel as root cmd /usr/bin/poweroff
permit nopass :wheel as root cmd /usr/bin/reboot
" > /etc/doas.conf
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/doas-completion -o /usr/share/bash-completion/completions/doas
ln -s /usr/bin/doas /usr/local/bin/sudo
+1 -1
View File
@@ -3,7 +3,7 @@
loadkeys us
echo ----------------------------------------------------------------------------------------------
echo rwinkhart\'s artix install script
echo last updated december 03, 2023 \(rev. C\)
echo last updated december 06, 2023 \(rev. A\)
echo ----------------------------------------------------------------------------------------------
echo You will be asked some questions before installation.
echo -e "----------------------------------------------------------------------------------------------\n"