mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-05 08:27:16 -04:00
Use wheel group for opendoas configuration, rather than username
This commit is contained in:
+5
-5
@@ -45,16 +45,16 @@ grub-mkconfig -o /boot/grub/grub.cfg
|
|||||||
|
|
||||||
# account setup
|
# account setup
|
||||||
groupadd libvirt
|
groupadd libvirt
|
||||||
useradd -m -g users -G uucp,libvirt "$username"
|
useradd -m -g users -G wheel,uucp,libvirt "$username"
|
||||||
echo "$userpassword
|
echo "$userpassword
|
||||||
$userpassword
|
$userpassword
|
||||||
" | passwd "$username"
|
" | passwd "$username"
|
||||||
|
|
||||||
# opendoas configuration
|
# opendoas configuration
|
||||||
echo "permit persist keepenv $username as root
|
echo "permit persist keepenv :wheel as root
|
||||||
permit nopass $username as root cmd /usr/local/bin/powerset.sh
|
permit nopass :wheel as root cmd /usr/local/bin/powerset.sh
|
||||||
permit nopass $username as root cmd /usr/bin/poweroff
|
permit nopass :wheel as root cmd /usr/bin/poweroff
|
||||||
permit nopass $username as root cmd /usr/bin/reboot
|
permit nopass :wheel as root cmd /usr/bin/reboot
|
||||||
" > /etc/doas.conf
|
" > /etc/doas.conf
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/doas-completion -o /usr/share/bash-completion/completions/doas
|
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
|
ln -s /usr/bin/doas /usr/local/bin/sudo
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
loadkeys us
|
loadkeys us
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo rwinkhart\'s artix install script
|
echo rwinkhart\'s artix install script
|
||||||
echo last updated december 03, 2023 \(rev. C\)
|
echo last updated december 06, 2023 \(rev. A\)
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo You will be asked some questions before installation.
|
echo You will be asked some questions before installation.
|
||||||
echo -e "----------------------------------------------------------------------------------------------\n"
|
echo -e "----------------------------------------------------------------------------------------------\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user