/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
- /etc/shadow — The root-only file that stores each local account's password hash and password aging rules, kept apart from the world-readable /etc/passwd.
- UID and GID — The numbers Linux uses to identify a user (UID) and a group (GID); root is UID 0.
- reconnection gate — An automated check a rebuilt or restored host must pass before it leaves quarantine and rejoins the network.
- user account — The record that lets a person or service use a Linux system, tying a login name to a UID, a primary group, a home directory and a login shell.
- /etc — The directory that holds a Linux system's configuration files.
Taught in
- The Host Footprint: Six Doors On A Worker — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Users, UIDs And The Password File — Linux Fundamentals & Systems Administration
- Logins, su, sudo And SSH Between Hosts — Red Hat Certified System Administrator (EX200) Exam Prep
- Exam-Style Scripts: Arguments, Output And Exit Codes — Red Hat Certified System Administrator (EX200) Exam Prep
- Recovering Root And Changing The Boot Loader — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: The Machine That Will Not Boot — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: People, Packages And Time — Red Hat Certified System Administrator (EX200) Exam Prep
- Recovery & System Validation Testing — Security Operations & Threat Hunting (SOC)
- Starters, Leavers And A Service Account: Accounts On Two Families — CompTIA Linux+ (XK0-006) Exam Prep
- One Word Locked Out Every Directory User: PAM, SSSD, LDAP And Kerberos — CompTIA Linux+ (XK0-006) Exam Prep
- Root Over SSH From Anywhere: Keys, sshd, setuid Files And Attributes — CompTIA Linux+ (XK0-006) Exam Prep
- Three Audit Findings And A Phone: Password Policy, Lockouts And MFA — CompTIA Linux+ (XK0-006) Exam Prep
- When awk Runs Out: Python Data Types, Modules And Virtual Environments For Admins — CompTIA Linux+ (XK0-006) Exam Prep
- The Release Tag That Never Left The Laptop: Git Branches, Remotes, Tags And History — CompTIA Linux+ (XK0-006) Exam Prep
- Ansible Vault: Secrets Encrypted, Runs Without A Prompt — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: People, Passwords And sudo From The Vault — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems