OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: andrema2 on July 30, 2020, 09:29:01 PM

Title: Telegraf user looses its groups every reboot
Post by: andrema2 on July 30, 2020, 09:29:01 PM
Hi,

In order to get the Unbound metrics, I need to add telegraf user to unbound group. Apparentely the user gets recriated during the reboot process and looses its membership from unbound.

How can I add it to unbound group during the boot process ? Where is the startup file I could change to add it ?

Thanks
Title: Re: Telegraf user looses its groups every reboot
Post by: andrema2 on July 30, 2020, 09:34:58 PM
Ok, I found and edited /usr/local/opnsense/scripts/OPNsense/Telegraf/setup.sh

adding

/usr/sbin/pw groupmod unbound - m telegraf