stable #2

Merged
alientim merged 89 commits from stable into dev 2024-11-15 10:37:11 +01:00
Showing only changes of commit 777d3981f0 - Show all commits

View File

@@ -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"