Files
photoBooth/Opencode/config/sudoers-jh-photomaton
T
admin f192ffc92f
🚀 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-20 19:04:37 +02:00

25 lines
1.2 KiB
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
# Gestion des imprimantes CUPS (boutons activer/désactiver dans l'admin impression)
pi ALL=(ALL) NOPASSWD: /usr/sbin/cupsenable
pi ALL=(ALL) NOPASSWD: /usr/sbin/cupsdisable
pi ALL=(ALL) NOPASSWD: /usr/sbin/cupsaccept
pi ALL=(ALL) NOPASSWD: /usr/sbin/cupsreject