Files
photoBooth/Opencode/config/sudoers-jh-photomaton
T
admin fb35533b37
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled
Dashboard: boutons restart services, JH-Photomaton et reboot Pi
2026-07-18 10:35:43 +02:00

19 lines
959 B
Plaintext

# 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