[Bug 275698] net-mgmt/icinga2: Wrong file permissions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Dec 2023 14:19:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275698
Bug ID: 275698
Summary: net-mgmt/icinga2: Wrong file permissions
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Keywords: easy
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: joneum@FreeBSD.org
Reporter: gyptazy@gyptazy.ch
Assignee: joneum@FreeBSD.org
Flags: maintainer-feedback?(joneum@FreeBSD.org)
Running the command `icinga2 node wizard` from the port/pkg 'icinga2' results
in the following error message:
critical/Application: Error: boost::filesystem::copy_file: Permission denied:
"/usr/local/etc/icinga2/features-available/api.conf",
"/usr/local/etc/icinga2/features-available/api.conf.orig"
This is caused by wrong permissions in '/usr/local/etc/icinga2/' where the
files should be owned by icinga:icinga (take care about the missing version
here).
You can be fixed this by running the following command:
$> chown -R icinga:icinga /usr/local/etc/icinga2/*
Afterwards, simply rerun the `icinga2 node wizard` command or just do it before
running this.
This is only affected when the icinga user wants to (re)write/update the
configuration files like it's done by the 'node wizard' command.
Cheers,
gyptazy
--
You are receiving this mail because:
You are the assignee for the bug.