Bug 275698 - net-mgmt/icinga2: Wrong file permissions
Summary: net-mgmt/icinga2: Wrong file permissions
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jochen Neumeister
URL:
Keywords: easy
Depends on:
Blocks:
 
Reported: 2023-12-11 14:19 UTC by gyptazy
Modified: 2023-12-11 14:19 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gyptazy 2023-12-11 14:19:14 UTC
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