NUT documentation strongly suggests running `upsmon` as a non-root user with very limited permissions. This includes only read access to `upsmon.conf`. Previously the `RUN_AS_USER` setting could be overwritten with `mkForce`, but this left the system with technically incorrect permissions on `upsmon.conf` that would prevent reloading. This patch provides a way to change the user that `upsmon` runs as while maintaining correct permissions on `upsmon.conf`. Fixes #318582
21 KiB
21 KiB