mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -04:00
Preexisting nut files will have uucp group permissions, which will no
longer be available to nut because it runs under its own GID. For the
time being add code to nut_prestart() adjusting the ownership of the
files to UID nut and GID nut.
This code should be removed approximately a year from now as it is
expected that most if not all nut installations will have correct file
ownership by then.
While here, also fix nut.newsyslog to refer to the new nut UID/GID.
Reported by: avg, Mathieu <sigsys@gmail.com>
Fixes: 02c038c8cc
7 lines
292 B
Text
7 lines
292 B
Text
# configuration file for newsyslog for nut
|
|
#
|
|
# see newsyslog.conf(5) for details
|
|
#
|
|
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
|
/var/log/nut/upsd.log nut:nut 644 7 100 * J /var/db/nut/upslog.pid
|
|
|