Merge pull request #92240 from nh2/better-empty-password-docs
docs: Explain how to set password-less logins.
This commit is contained in:
commit
81aeaeb252
@ -27,6 +27,15 @@ let
|
|||||||
hashedPasswordDescription = ''
|
hashedPasswordDescription = ''
|
||||||
To generate hashed password install <literal>mkpasswd</literal>
|
To generate hashed password install <literal>mkpasswd</literal>
|
||||||
package and run <literal>mkpasswd -m sha-512</literal>.
|
package and run <literal>mkpasswd -m sha-512</literal>.
|
||||||
|
|
||||||
|
For password-less logins without password prompt, use
|
||||||
|
the empty string <literal>""</literal>.
|
||||||
|
|
||||||
|
For logins with a fixed password (including the empty-string password with
|
||||||
|
prompt), use one of the un-hashed password options instead, such as
|
||||||
|
<option>users.users.<name?>.password</option>.
|
||||||
|
|
||||||
|
Such unprotected logins should only be used for e.g. bootable live systems.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
userOpts = { name, config, ... }: {
|
userOpts = { name, config, ... }: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user