end permissions fix
This commit is contained in:
parent
bab6a2824f
commit
04c0874114
1 changed files with 2 additions and 2 deletions
4
larbs.sh
4
larbs.sh
|
@ -111,7 +111,7 @@ serviceinit() { for service in $@; do
|
|||
|
||||
newperms() { # Set special sudoers settings for install (or after).
|
||||
sed -i "/#LARBS/d" /etc/sudoers
|
||||
echo "$@ #LARBS" >> /etc/sudoers ;}
|
||||
echo -e "$@ #LARBS" >> /etc/sudoers ;}
|
||||
|
||||
systembeepoff() { dialog --infobox "Getting rid of that retarded error beep sound..." 10 50
|
||||
rmmod pcspkr
|
||||
|
@ -199,7 +199,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) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/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"
|
||||
newperms "%wheel ALL=(ALL) ALL\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/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"
|
||||
|
||||
# Last message! Install complete!
|
||||
finalize
|
||||
|
|
Loading…
Reference in a new issue