← All rules
SOCLE-CLD-FSP-113// File permissionsmediumpersistent config

Verify Permissions on /etc/at.deny file

Ensures /etc/at.deny is not writable/readable by other or writable by group, and carries no executable or special (setuid/setgid/sticky) bits, i.e. mode 0640 or stricter.

Checked against the content of a persistent configuration file, the source of truth that survives reboots.

A pass proves? running now✓ on disk✓ survives rebootthe qualified verdict →
Debian 12CIS 1.1.0Debian 13CIS 1.0.0FedoraRHEL 10 / Rocky 10 / AlmaLinux 10RHEL 8 / Rocky 8 / AlmaLinux 8CIS 4.0.0RHEL 9 / Rocky 9 / AlmaLinux 9CIS 2.0.0Ubuntu 22.04CIS 3.0.0Ubuntu 24.04CIS 1.0.0Ubuntu 26.04
One check, maps to 1 standard

A mapping is a cross-reference to where each standard places this requirement, anchored and cross-validated, not a claim of equivalence. A passing check is evidence toward these references, how to read it.

Why this rule matters

/etc/at.deny is the deny-list of users forbidden from scheduling at jobs (it is consulted only when at.allow is absent). If it is world-readable or group/other-writable, an unauthorized user could read who is blocked or edit the list to remove their own name, bypassing the restriction and gaining the ability to run scheduled commands. Permissions of 0640 or stricter keep at access policy under root's control.

What Pavois checks

Pavois reads the file's live mode bits through the InSpec file resource, not a package default. Each should_not be_writable/readable/executable/setuid… matcher inspects the actual inode the kernel enforces, catching any permission loosened after install. The only_if { file('/etc/at.deny').exist? } guard skips the check (without failing) when the file is absent.

only_if { file('/etc/at.deny').exist? }
describe file('/etc/at.deny') do
  it { should_not be_executable.by('owner') }
  it { should_not be_setuid }
  it { should_not be_executable.by('group') }
  it { should_not be_writable.by('group') }
  it { should_not be_setgid }
  it { should_not be_executable.by('other') }
  it { should_not be_writable.by('other') }
  it { should_not be_readable.by('other') }
  it { should_not be_sticky }
end

How to verify it is applied

Run stat -c '%a %U %G %n' /etc/at.deny. Expected output is 640 root root /etc/at.deny (or stricter, e.g. 600).

Inspect & investigate

at activity is recorded by journalctl -u atd and in /var/log/syslog. Permission changes on the file can be tracked with an auditd watch: grep at.deny /var/log/audit/audit.log.

Remediation

No automated remediation is defined, so apply it manually: chown root:root /etc/at.deny && chmod 640 /etc/at.deny. Note that CIS hardening usually prefers an explicit at.allow and the removal of at.deny; if you keep at.deny, this rule guarantees it stays protected.

Pavois applies this with its own harden engine, the plan below, not a shell script:

commandtest -e /etc/at.deny && { chown root:root /etc/at.deny; chmod 0640 /etc/at.deny; }; true
nameat-deny-perms
not_if! test -e /etc/at.deny
resourceexec
pavois harden plan local

where the target is local, a user@host SSH alias, or a container , Docs

Impact & precautions

Risk if not applied: a writable deny-list can be edited to escape the at restriction. Precautions: tightening these permissions is safe, only root and atd read this file. There is no lockout risk; just verify no non-root tooling parses /etc/at.deny before restricting read access.

Standards mapping

StandardReferenceTypeVersionConfidence
CIS2.4.2.1directper OS, see the benchmark tablehigh

Each reference is a cross-reference anchored in the upstream benchmark and cross-validated against the SCAP Security Guide and ansible-lockdown, not a claim of equivalence. Direct = a prescriptive, line-level requirement; supporting = an abstract control family (NIST) the check provides evidence toward. How to read a mapping.

Sources & references