We may earn an affiliate commission when you visit our partners.

/etc/passwd

Save
May 1, 2024 3 minute read

The /etc/passwd file is a system file on Unix and Unix-like operating systems that contains information about user accounts. It is a text file that is located in the /etc directory, and it is typically read by the operating system when a user logs in to the system. The file contains a list of all the users on the system, as well as information about each user, such as their username, password, user ID, group ID, home directory, and shell.

What is /etc/passwd?

The /etc/passwd file is a flat file that contains a list of all the users on the system. Each line in the file represents one user, and it contains the following information:

  • Username: The username is the unique identifier for the user. It is used to log in to the system and to access files and directories.
  • Password: The password is the encrypted form of the user's password. It is used to verify the user's identity when they log in to the system.
  • User ID (UID): The user ID is a unique identifier for the user. It is used to identify the user to the system and to control access to files and directories.
  • Group ID (GID): The group ID is the identifier for the user's primary group. It is used to control access to files and directories that are owned by the group.
  • Home directory: The home directory is the directory that the user is assigned to when they log in to the system. It is typically used to store the user's personal files and directories.
  • Shell: The shell is the command-line interpreter that the user uses to interact with the system. It is typically used to run programs, execute commands, and manage files.

Why is /etc/passwd important?

Path to /etc/passwd

Take the first step.
We've curated one courses to help you on your path to /etc/passwd. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about /etc/passwd: by sharing it with your friends and followers:

Reading list

We've selected 12 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in /etc/passwd.
This comprehensive guide covers all aspects of managing user accounts with /etc/passwd, from creating and modifying accounts to setting permissions and security measures.
This advanced guide focuses on securing Linux systems, including the /etc/passwd file and other aspects of user account management.
This cookbook provides practical recipes for securing Linux systems, including securing user accounts and /etc/passwd.
This comprehensive reference on the Linux programming interface covers system calls related to user and group management, including those that interact with /etc/passwd.
This practical guide provides step-by-step instructions for managing user accounts, including using /etc/passwd.
This comprehensive textbook on Linux system administration covers /etc/passwd management as part of a broader discussion of user and group management.
This advanced programming guide covers topics such as user and group management, including the use of /etc/passwd.
This popular sysadmin book includes a section on user account management, including the use of /etc/passwd.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser