Skip to content

NixOS system configuration files and directories must be owned by root.

An XCCDF Rule

Description

Without the capability to restrict the roles and individuals that can select which events are audited, unauthorized personnel may be able to prevent the auditing of critical events. Misconfigured audits may degrade the system's performance by overwhelming the audit log. Misconfigured audits may also make it more difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.

ID
SV-268122r1039254_rule
Version
ANIX-00-000680
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Configure the NixOS system configuration files and directories to be owned by root by using the following command:

$ sudo find /etc/nixos -exec chown -R root {} \;

Rebuild the NixOS configuration with the following command:

$ sudo nixos-rebuild switch