3
0
Fork 0
forked from mirrors/nixpkgs

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:
Klemens Nanni 2020-10-26 03:22:17 +01:00 committed by Andreas Rammhold
parent 327cca2ab3
commit 3216b85713
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@
assigned by setting the user's
<link linkend="opt-users.users._name_.hashedPassword">hashedPassword</link>
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>
A user ID (uid) is assigned automatically. You can also specify a uid

View file

@ -33,6 +33,7 @@ let
pkgs.ncurses
pkgs.netcat
config.programs.ssh.package
pkgs.mkpasswd
pkgs.procps
pkgs.su
pkgs.time

View file

@ -35,8 +35,7 @@ let
'';
hashedPasswordDescription = ''
To generate a hashed password install the <literal>mkpasswd</literal>
package and run <literal>mkpasswd -m sha-512</literal>.
To generate a hashed password run <literal>mkpasswd -m sha-512</literal>.
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