Page 1 of 1

What user to run zmaudit.pl?

Posted: Mon Jun 26, 2023 3:04 am
by JimS
I had my disk fill up. The machine was still running but zoneminder wasn't, or at least the web page didn't work. So I deleted older image files and rebooted. Zoneminder is working. Tried to run zmaudit using putty from another pc. Got a messange:
Zoneminder configuraton file found but is not readable. Check file permissions on /etc/zm/zm.conf
Am I supposed to run this as a specific user? The man page says nothing about this.
using ls -al I see owner is root and group is www-data
So guessing I should run this as root, i.e.
sudo zmaudit.pl
but want to check before I do that...

Re: What user to run zmaudit.pl?

Posted: Mon Jun 26, 2023 7:03 am
by Magic919
You need to run it as a user that can access the config file. Needs therefore to be either www-data or root.