# 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