From 782a8959a5bca0c0dbb4aed6801f3214842f198e Mon Sep 17 00:00:00 2001 From: Daniel Castro Date: Thu, 7 Nov 2024 15:49:24 +0000 Subject: [PATCH] stop sending mails for failed sudo commands and add wildcard for arguments in rb_get_sensor.sh commands --- resources/templates/default/redBorder.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/templates/default/redBorder.erb b/resources/templates/default/redBorder.erb index 4382bef..2d826b0 100644 --- a/resources/templates/default/redBorder.erb +++ b/resources/templates/default/redBorder.erb @@ -12,7 +12,8 @@ <%# You should have received a copy of the GNU Affero General Public License License %> <%# along with redBorder. If not, see . %> <%####################################################################### %> +Defaults !mail_no_user Defaults:redborder !requiretty Defaults:redborder-monitor !requiretty, !syslog redborder ALL= NOPASSWD:SETENV: /usr/bin/env BOOTUP=none /usr/lib/redborder/bin/rb_get_sensor_rules.sh *, /usr/lib/redborder/bin/rb_bypass.sh, /usr/lib/redborder/bin/rb_wakeup_chef.sh, /usr/lib/redborder/bin/rb_disassociate.sh -f, /sbin/service chef-client restart, /usr/lib/redborder/bin/rb_u2pcap.sh *, /usr/lib/redborder/bin/rb_update_geoip, /usr/lib/redborder/bin/rb_update_redborder_rpms.sh -f -redborder-monitor ALL= NOPASSWD: /usr/lib/redborder/bin/rb_get_perfmonitor_stats.sh, /usr/lib/redborder/bin/rb_get_sensor.sh, /usr/lib/redborder/bin/rb_get_pfring_stats.sh, /usr/bin/nice -n 19 /usr/sbin/fping -p 1 -c 10 kafka.<%= node["redborder"]["cdomain"] %> +redborder-monitor ALL= NOPASSWD: /usr/lib/redborder/bin/rb_get_perfmonitor_stats.sh, /usr/lib/redborder/bin/rb_get_sensor.sh *, /usr/lib/redborder/bin/rb_get_pfring_stats.sh, /usr/bin/nice -n 19 /usr/sbin/fping -p 1 -c 10 kafka.<%= node["redborder"]["cdomain"] %>