Duplicate User IDs (UIDs) must not exist for interactive users.

STIG ID: ALMA-09-033020  |  SRG: SRG-OS-000104-GPOS-00051 |  Severity: medium |  CCI: CCI-000764,CCI-000804 |  Vulnerability Id: V-269365

Vulnerability Discussion

To ensure accountability and prevent unauthenticated access, organizational users must be identified and authenticated to prevent potential misuse and compromise of the system.

Organizational users include organizational employees or individuals the organization deems to have equivalent status of employees (e.g., contractors). Organizational users (and processes acting on behalf of users) must be uniquely identified and authenticated to all accesses, except for the following:

1) Accesses explicitly identified and documented by the organization. Organizations document specific user actions that can be performed on the information system without identification or authentication; and

2) Accesses that occur through authorized use of group authenticators without individual authentication. Organizations may require unique identification of individuals in group accounts (e.g., shared privilege accounts) or for detailed accountability of individual activity.

Satisfies: SRG-OS-000104-GPOS-00051, SRG-OS-000121-GPOS-00062

Check

Verify that AlmaLinux OS 9 contains no duplicate UIDs for interactive users with the following command:

$ cut -f3 -d":" /etc/passwd | uniq -d

If output is produced and the UIDs listed are for interactive user accounts, this is a finding.

Fix

Provide each interactive user that has a duplicate UID with a unique UID using the "usermod" command, for example:

$ usermod -u 1002 myuser