Hello I am currently trying to give the only user on my R-PI the access to run all the command in the pi-hole application directory without using having to use the sudo command.  So i have created a new file in /etc/sudoers.c using the visudo comandThis is the contents#############################################################################################Gives user the ability to run PIhole stuff#################################################################################################user ALL=NOPASSWD: /usr/local/bin/piholeThe file is mode 440 to root and visudo -c (check) parses fine but I still cannot access these files.  The same user is also in my sudousers main file.  I have rebooted after making these changes.  I am not sure if the main file is locking out the changes I am making in my auxilary file## This file MUST be edited with the 'visudo' command as root.## Please consider adding local content in /etc/sudoers.d/ instead of# directly modifying this file.## See the man page for details on how to write a sudoers file.#Defaults    env_resetDefaults    mail_badpassDefaults    secure_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin# Host alias specification# User alias specification# Cmnd alias specification# User privilege specificationroot    ALL=(ALL:ALL) ALLuser   ALL=(ALL:ALL) ALL# Allow members of group sudo to execute any command%sudo   ALL=(ALL:ALL) ALL# See sudoers(5) for more information on #include directives:#includedir /etc/sudoers.dThere is also the webdata file for this app that appears to be doing the same thing I am.  Its setup the same way my file is but is working as expected.# Pi-hole: A black hole for Internet advertisements# (c) 2017 Pi-hole, LLC (https://pi-hole.net)# Network-wide ad blocking via your own hardware.## Allows the WebUI to use Pi-hole commands## This file is copyright under the latest version of the EUPL.# Please see LICENSE file for your rights under this license.#www-data ALL=NOPASSWD: /usr/local/bin/piholeAny commands I need to run to get it to commit these changes, any formating issues I should look for.
Using sudoers.d/ directive files
linux;sudo;raspberry pi;raspbian