| Red Hat Documentation: man pages: man5: Linux User Manual (5) |
PASSWDSection: File formats (5)Updated: January 5, 2025 Index NAMEpasswd - password fileDESCRIPTIONPasswd is a text file, that contains a list of the system's accounts, giving for each account some useful information like user ID, group ID, home directory, shell, etc. Often it also contains the encrypted passwords for each account. It should have general read permission (many utilities, like use it to map user IDs to user names), but write access only for the superuser.In the good old days there was no great problem with this general read permission. Everybody could read the encrypted passwords, but the hardware was too slow to crack a well-chosen password, and moreover, the basic assumption used to be that of a friendly user-community. These days many people run some version of the shadow password suite, where /etc/passwd has *'s instead of encrypted passwords, and the encrypted passwords are in /etc/shadow which is readable by the superuser only. Regardless of whether shadow passwords are used, many sysadmins use a star in the encrypted password field to make sure that this user can not authenticate him- or herself using a password. (But see the Notes below.) If you create a new login, first put a star in the password field, then use to set it. There is one entry per line, and each line has the format:
The field descriptions are:
NOTEIf you want to create user groups, their GIDs must be equal and there must be an entry in /etc/group, or no group will exist.If the encrypted password is set to a star, the user will be unable to login using but may still login using run existing processes and initiate new ones through or or or mail filters etc. Trying to lock an account by simply changing the shell field yields the same result and additionally allows the use of FILES/etc/passwdSEE ALSO
IndexThis document was created by using the manual pages. Time: 12:12:24 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |