I am in the process of setting up specialized sudo for our first line support team. I would like to authorized them to delete anything within /var/log/
. The command below however only applies to files directly in /var/log/
not its subdirectories. If they attempt to delete from /var/log/directory/file_name
they are not permitted to delete the file. I've tried some reading, but cannot figure out how to change this command to make the permissions recursive. Any advice would be appreciated.
%front_line ALL=(ALL) NOPASSWD: /bin/rm /var/log/*