What does a plus + at the beginning of a line in the /etc/passwd UNIX / Linux password file signify?

w‮ww‬.lautturi.com
What does a plus + at the beginning of a line in the /etc/passwd UNIX / Linux password file signify?

In the /etc/passwd file on a Unix or Linux system, a plus sign (+) at the beginning of a line signifies that the user information for the corresponding user is stored in an external source, such as an LDAP server or a network information service (NIS).

The /etc/passwd file is a system file that stores information about the users on a system, including their user names, user IDs (UIDs), group IDs (GIDs), home directories, and shell programs. Each line in the file represents a single user and is formatted as follows:

username:password:UID:GID:gecos:home_directory:shell

If a plus sign (+) appears at the beginning of a line in the /etc/passwd file, it indicates that the user information for the corresponding user is stored in an external source and is not contained in the /etc/passwd file itself. The rest of the line is typically left blank or contains a placeholder value.

For example, a line in the /etc/passwd file that begins with a plus sign might look like this:

+:::

This line indicates that the user information for the user is stored in an external source and is not contained in the /etc/passwd file.

It's important to note that the /etc/passwd file is a critical system file and should be modified with caution. Consult the documentation and online resources for more information on how to use and manage user accounts on a Unix or Linux system.

Created Time:2017-10-30 14:27:32  Author:lautturi