documentation_complete: true


title: 'Verify Group Ownership of Message of the Day Banner'

description: |-
    {{{ describe_file_group_owner(file="/etc/motd", group="root") }}}

rationale: |-
    Display of a standardized and approved use notification before granting
    access to the operating system ensures privacy and security notification
    verbiage used is consistent with applicable federal laws, Executive Orders,
    directives, policies, regulations, standards, and guidance.<br />
    Proper group ownership will ensure that only root user can modify the banner.

severity: medium

identifiers:
    cce@rhel8: CCE-83728-6
    cce@rhel9: CCE-86697-0
    cce@rhel10: CCE-87687-0
    cce@sle12: CCE-92230-2
    cce@sle15: CCE-91352-5
    cce@slmicro5: CCE-94058-5

references:
    cis@sle12: 1.8.1.4
    cis@sle15: 1.8.1.4

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/motd", group="root") }}}'

ocil: |-
    {{{ ocil_file_group_owner(file="/etc/motd", group="root") }}}

template:
    name: file_groupowner
    vars:
        filepath: /etc/motd
        gid_or_name: '0'
