PASSWD.CONF(5)
π passwd.conf β password encryption configuration file π
Welcome to the PASSWD.CONF(5) page, bestie β this is the File Formats Manual entry for the password encryption config, and itβs giving βtiny file, big security vibes.β β¨
πΈ NAME πΈ
passwd.conf β password encryption configuration file π
π¦ SYNOPSIS π¦
passwd.conf
β¨ DESCRIPTION β¨
The /etc/passwd.conf file is made of βstanzasβ, and it describes how the password cipher is configured for encrypting local or YP passwords. No cap, thatβs the whole glow-up. π
There are default, user, and group specific stanzas. If no user or group stanza to a specific option is available, the default stanza is used. Periodt. π
To differentiate between user and group stanzas, groups are prefixed with a single colon (:). Cute little colon moment. π
Some fields and their possible values that can appear in this file are:
localcipherβ the cipher to use for local passwords. Possible values are:βargon2d,<t=X,m=Y,p=Z>β,βargon2i,<t=X,m=Y,p=Z>β,βargon2id,<t=X,m=Y,p=Z>β,βoldβ,βnewsalt,<rounds>β,βmd5β,βsha1,<rounds>β, andβblowfish,<rounds>β.- For
βargon2dβ,βargon2iβ, andβargon2idβ, optional hardness parameters can be specified as described in the manual forpwhash(1). π§ - For
βnewsaltβthe value of rounds is a 24-bit integer with a minimum of7250rounds. π₯ - For
βsha1βthe value of rounds is a 32-bit integer,0means use the default of24680. π« - For
βblowfishβthe value can be between4and31. It specifies the base 2 logarithm of the number of rounds. π‘ - If not specified, the default value is
βoldβ. π«Ά
- For
ypcipherβ the cipher to use for YP passwords. The possible values are the same as forlocalcipher. If not specified, the default value isβoldβ. π
To retrieve information from this file use pw_getconf(3). iykyk π
π¦ FILES π¦
/etc/passwd.confπ
π EXAMPLES π
Use SHA1 as the local cipher and old-style DES as the YP cipher. Use blowfish with 2^5 rounds for root:
default:
localcipher = sha1
ypcipher = old
root:
localcipher = blowfish,5
π SEE ALSO π
passwd(1), pwhash(1), pw_getconf(3), passwd(5) π
π HISTORY π
- The
passwd.confconfiguration file first appeared inNetBSD 1.6. β - The default value of
localcipherwas set toβsha1βin/etc/passwd.confstarting fromNetBSD 6.0. πΈ - The default value of
localcipherwas set toβargon2idβin/etc/passwd.confstarting fromNetBSD 10.0. π
π Thatβs the tea from Debian, dated October 26, 2021 β stay encrypted and iconic, bestie! π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms