PASSWD.CONF(5)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸŽ€ 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 for pwhash(1). 🧚
    • For β€œnewsalt” the value of rounds is a 24-bit integer with a minimum of 7250 rounds. πŸ”₯
    • For β€œsha1” the value of rounds is a 32-bit integer, 0 means use the default of 24680. πŸ’«
    • For β€œblowfish” the value can be between 4 and 31. It specifies the base 2 logarithm of the number of rounds. 🐑
    • If not specified, the default value is β€œold”. 🫢
  • ypcipher β€” the cipher to use for YP passwords. The possible values are the same as for localcipher. 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.conf configuration file first appeared in NetBSD 1.6. ⭐
  • The default value of localcipher was set to β€œsha1” in /etc/passwd.conf starting from NetBSD 6.0. 🌸
  • The default value of localcipher was set to β€œargon2id” in /etc/passwd.conf starting from NetBSD 10.0. πŸš€

πŸ’– That’s the tea from Debian, dated October 26, 2021 β€” stay encrypted and iconic, bestie! πŸ’–

πŸ“¦ where this page comes from