Skip to content

NixOS must define default permissions for all authenticated users in such a way that the user can only read and modify their own files.

An XCCDF Rule

Description

Setting the most restrictive default permissions ensures that when new accounts are created they do not have unnecessary access.

ID
SV-268181r1039431_rule
Version
ANIX-00-002180
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Configure the NixOS operating system to change default file permissions so users may only modify their own files.

Add the following Nix code to the NixOS Configuration usually located in /etc/nixos/configuration.nix:

  { config, pkgs, lib, ... }: