nixos/system-path: Add mkpasswd(1)
Generating password hashes, e.g. when adding new users to the system configuration, should work out-of-the-box and offline.
This commit is contained in:
parent
327cca2ab3
commit
3216b85713
|
@ -38,7 +38,7 @@
|
||||||
assigned by setting the user's
|
assigned by setting the user's
|
||||||
<link linkend="opt-users.users._name_.hashedPassword">hashedPassword</link>
|
<link linkend="opt-users.users._name_.hashedPassword">hashedPassword</link>
|
||||||
option. A hashed password can be generated using <command>mkpasswd -m
|
option. A hashed password can be generated using <command>mkpasswd -m
|
||||||
sha-512</command> after installing the <literal>mkpasswd</literal> package.
|
sha-512</command>.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
A user ID (uid) is assigned automatically. You can also specify a uid
|
A user ID (uid) is assigned automatically. You can also specify a uid
|
||||||
|
|
|
@ -33,6 +33,7 @@ let
|
||||||
pkgs.ncurses
|
pkgs.ncurses
|
||||||
pkgs.netcat
|
pkgs.netcat
|
||||||
config.programs.ssh.package
|
config.programs.ssh.package
|
||||||
|
pkgs.mkpasswd
|
||||||
pkgs.procps
|
pkgs.procps
|
||||||
pkgs.su
|
pkgs.su
|
||||||
pkgs.time
|
pkgs.time
|
||||||
|
|
|
@ -35,8 +35,7 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hashedPasswordDescription = ''
|
hashedPasswordDescription = ''
|
||||||
To generate a hashed password install the <literal>mkpasswd</literal>
|
To generate a hashed password run <literal>mkpasswd -m sha-512</literal>.
|
||||||
package and run <literal>mkpasswd -m sha-512</literal>.
|
|
||||||
|
|
||||||
If set to an empty string (<literal>""</literal>), this user will
|
If set to an empty string (<literal>""</literal>), this user will
|
||||||
be able to log in without being asked for a password (but not via remote
|
be able to log in without being asked for a password (but not via remote
|
||||||
|
|
Loading…
Reference in New Issue