/etc/passwd

The world-readable file that lists local accounts, one per line: name, UID, GID, description, home directory and login shell, separated by colons.

In more detail

Despite its name it no longer holds passwords; the second field is just x, meaning the hash lives in /etc/shadow. Everyone can read it because programs need to turn UIDs into names. Edit it with tools such as useradd or vipw rather than by hand.

Example

A new account with user ID 0, or a service account suddenly given a login shell, is a sign of persistence.

Related terms

Taught in

References

Certification courses