Dashboard: boutons restart services, JH-Photomaton et reboot Pi
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled

This commit is contained in:
2026-07-18 10:35:43 +02:00
parent 3522d2d996
commit fb35533b37
3 changed files with 148 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
# JH Photomaton — droits sudo sans mot de passe pour la gestion des services
#
# INSTALLATION :
# sudo cp sudoers-jh-photomaton /etc/sudoers.d/jh-photomaton
# sudo chmod 440 /etc/sudoers.d/jh-photomaton
# sudo visudo -cf /etc/sudoers.d/jh-photomaton # vérification syntaxe
#
# Ces règles permettent à l'utilisateur "pi" de redémarrer les services
# nécessaires au photomaton ainsi que de rebooter le Pi, sans mot de passe.
pi ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart photobooth-app.service
pi ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart photobooth-kiosk.service
pi ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart zoraxy.service
pi ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart hostapd.service
pi ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart dnsmasq.service
pi ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart cups.service
pi ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart jh-photomaton.service
pi ALL=(ALL) NOPASSWD: /usr/sbin/reboot