diff --git a/install.sh b/install.sh index d5199f9..5fc5efa 100644 --- a/install.sh +++ b/install.sh @@ -31,13 +31,12 @@ sudo tee /etc/sudoers.d/loginuser >/dev/null << 'EOF' loginuser ALL=(ALL) NOPASSWD: /usr/bin/systemctl status watchdog, /usr/bin/systemctl start watchdog, /usr/bin/systemctl stop watchdog, /usr/bin/systemctl restart watchdog loginuser ALL=(ALL) NOPASSWD: /usr/bin/systemctl status watchdog-monitor, /usr/bin/systemctl start watchdog-monitor, /usr/bin/systemctl stop watchdog-monitor, /usr/bin/systemctl restart watchdog-monitor loginuser ALL=(ALL) NOPASSWD: /usr/bin/systemctl status chromium-monitor, /usr/bin/systemctl start chromium-monitor, /usr/bin/systemctl stop chromium-monitor, /usr/bin/systemctl restart chromium-monitor -loginuser ALL=(ALL) NOPASSWD: /usr/bin/echo, /usr/bin/cp -loginuser ALL=(ALL) NOPASSWD: /usr/bin/sed -loginuser ALL=(ALL) NOPASSWD: /usr/bin/tee -loginuser ALL=(ALL) NOPASSWD: /usr/sbin/reboot, /usr/sbin/dhclient eth0, /usr/bin/fbset loginuser ALL=(ALL) NOPASSWD: /usr/bin/cat /var/lib/dhcp/* -loginuser ALL=(ALL) NOPASSWD: /usr/bin/custom/watchdog-monitor -loginuser ALL=(ALL) NOPASSWD: /usr/bin/custom/chromium-monitor +loginuser ALL=(ALL) NOPASSWD: /usr/bin/cp /etc/watchdog.conf /etc/watchdog.conf.bak +loginuser ALL=(ALL) NOPASSWD: /usr/bin/tee /etc/watchdog.conf, /usr/bin/tee -a /etc/watchdog.conf +loginuser ALL=(ALL) NOPASSWD: /usr/bin/sed -i * /etc/hosts +loginuser ALL=(ALL) NOPASSWD: /usr/bin/hostnamectl set-hostname +loginuser ALL=(ALL) NOPASSWD: /usr/sbin/reboot, /usr/sbin/dhclient eth0, /usr/bin/fbset EOF sudo usermod -aG video loginuser >>/var/log/install 2>&1 && print_status "Permissions for 'loginuser' set"