perm fix
This commit is contained in:
parent
729d60ae02
commit
efc871190d
4
larbs.sh
4
larbs.sh
@ -136,7 +136,7 @@ resetpulse() { dialog --infobox "Reseting Pulseaudio..." 4 50
|
||||
|
||||
manualinstall() { # Installs $1 manually if not installed. Used only for AUR helper here.
|
||||
[[ -f /usr/bin/$1 ]] || (
|
||||
dialog --infobox "Installing \"$1\", an AUR helper..." 8 50
|
||||
dialog --infobox "Installing \"$1\", an AUR helper..." 4 50
|
||||
cd /tmp
|
||||
rm -rf /tmp/"$1"*
|
||||
curl -sO https://aur.archlinux.org/cgit/aur.git/snapshot/"$1".tar.gz &&
|
||||
@ -217,7 +217,7 @@ systembeepoff
|
||||
|
||||
# This line, overwriting the `newperms` command above will allow the user to run
|
||||
# serveral important commands, `shutdown`, `reboot`, updating, etc. without a password.
|
||||
newperms "%wheel ALL=(ALL) ALL\\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/packer -Syu,/usr/bin/packer -Syyu,/usr/bin/systemctl restart NetworkManager,/usr/bin/rc-service NetworkManager restart,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys,/usr/bin/yay,pacman -Syyuw --noconfirm"
|
||||
newperms "%wheel ALL=(ALL) ALL\\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/packer -Syu,/usr/bin/packer -Syyu,/usr/bin/systemctl restart NetworkManager,/usr/bin/rc-service NetworkManager restart,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys,/usr/bin/yay,/usr/bin/pacman -Syyuw --noconfirm"
|
||||
|
||||
# Make pacman and yay colorful because why not.
|
||||
sed -i "s/^#Color/Color/g" /etc/pacman.conf
|
||||
|
Loading…
Reference in New Issue
Block a user