install.sh aktualisiert
This commit is contained in:
10
install.sh
10
install.sh
@@ -28,12 +28,16 @@ sudo adduser --disabled-password --gecos "" loginuser >>/var/log/install 2>&1 &&
|
||||
|
||||
echo -e "${RED}→${NC} Setting permissions for 'loginuser'..."
|
||||
sudo tee /etc/sudoers.d/loginuser >/dev/null << 'EOF'
|
||||
loginuser ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart watchdog, /usr/bin/systemctl status watchdog, /usr/bin/systemctl restart chromium-monitor, /usr/bin/systemctl status chromium-monitor
|
||||
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 /etc/watchdog.conf
|
||||
loginuser ALL=(ALL) NOPASSWD: /usr/bin/tee -a /etc/watchdog.conf
|
||||
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
|
||||
EOF
|
||||
sudo usermod -aG video loginuser >>/var/log/install 2>&1 && print_status "Permissions for 'loginuser' set"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user