Ensure All Accounts on the System Have Unique Names

This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project, feel free to reach out to us!

Description

Ensure accounts on the system have unique names. To ensure all accounts have unique names, run the following command:

$ sudo getent passwd | awk -F: '{ print $1}' | uniq -d

If a username is returned, change or delete the username.

Rationale

Unique usernames allow for accountability on the system.