Skip to content

Verify Permissions on Backup group File

An XCCDF Rule

Description

To properly set the permissions of /etc/group-, run the command:

$ sudo chmod 0644 /etc/group-

Rationale

The /etc/group- file is a backup file of /etc/group, and as such, it contains information regarding groups that are configured on the system. Protection of this file is important for system security.

ID
xccdf_org.ssgproject.content_rule_file_permissions_backup_etc_group
Severity
Medium
References
Updated



Remediation - Ansible

- name: Test for existence /etc/group-
  stat:
    path: /etc/group-
  register: file_exists
  tags:
  - CCE-92201-3

Remediation - Shell Script






chmod u-xs,g-xws,o-xwt /etc/group-