a /etc/passwd.conf file, consisting of .Dq stanzas , describes the configuration of the password cipher used to encrypt local or YP passwords.
p 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.
p To differentiate between user and group stanzas, groups are prefixed with a single colon
q Sq : .
p Some fields and their possible values that can appear in this file are: l -tag -width localcipher t Sy localcipher The cipher to use for local passwords.
p Possible values are: .Dq argon2d,<t=X,m=Y,p=Z> , .Dq argon2i,<t=X,m=Y,p=Z> , .Dq argon2id,<t=X,m=Y,p=Z> , .Dq old , .Dq newsalt,<rounds> , .Dq md5 , .Dq sha1,<rounds> , and .Dq blowfish,<rounds> .
p For .Dq argon2d , .Dq argon2i , and .Dq argon2id , optional hardness parameters can be specified as described in the manual for .Xr pwhash 1 .
p For .Dq newsalt the value of rounds is a 24-bit integer with a minimum of 7250 rounds.
p For .Dq sha1 the value of rounds is a 32-bit integer, 0 means use the default of 24680.
p For .Dq blowfish the value can be between 4 and 31. It specifies the base 2 logarithm of the number of rounds.
p If not specified, the default value is .Dq old . t Sy ypcipher The cipher to use for YP passwords.
p The possible values are the same as for localcipher.
p If not specified, the default value is .Dq old . .El
p To retrieve information from this file use .Xr pw_getconf 3 . .Sh FILES l -tag -width /etc/passwd.conf -compact t Pa /etc/passwd.conf .El .Sh EXAMPLES Use SHA1 as the local cipher and old-style DES as the YP cipher. Use blowfish with 2^5 rounds for root: d -literal default: localcipher = sha1 ypcipher = old root: localcipher = blowfish,5 .Ed .Sh SEE ALSO .Xr passwd 1 , .Xr pwhash 1 , .Xr pw_getconf 3 , .Xr passwd 5 .Sh HISTORY The .Nm configuration file first appeared in .Nx 1.6 .
p The default value of .Sy localcipher was set to .Dq sha1 in
a /etc/passwd.conf starting from .Nx 6.0 .
p The default value of .Sy localcipher was set to .Dq argon2id in
a /etc/passwd.conf starting from .Nx 10.0 .