documentation_complete: true

title: 'Verify Owner on the journalctl Command'

description: |-
    Verify that the "journalctl" command is owned by "root" by
    using the following command:
    <pre>
    $ sudo find /usr/bin/journalctl -exec stat -c "%n %U" {} \;
    </pre>
    If any output returned is not owned by "root", this is a finding.

rationale: |-
    Only authorized personnel should be aware of errors and the details of the errors.
    Error messages are an indicator of an organization's operational state or can
    identify the operating system or platform. Additionally, personally identifiable
    information (PII) and operational information must not be revealed through error
    messages to unauthorized personnel or their designated representatives.

severity: medium

fixtext: |
    Configure "journalctl" to be owned by "root":
    <pre>
    $ sudo chown root /usr/bin/journalctl
    </pre>

template:
    name: file_owner
    vars:
        filepath: /usr/bin/journalctl
        uid_or_name: '0'
