summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--documentation/ref-manual/classes.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index bf39d5e4cc..03dd375776 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -574,12 +574,11 @@ Here is an example that uses this class in an image recipe::
574 " 574 "
575 575
576Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns 576Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
577passwords. First on host, create the password hash:: 577passwords. First on host, create the (escaped) password hash::
578 578
579 mkpasswd -m sha256crypt tester01 579 printf "%q" $(mkpasswd -m sha256crypt tester01)
580 580
581The resulting hash is set to a variable and used in ``useradd`` command parameters. 581The resulting hash is set to a variable and used in ``useradd`` command parameters::
582Remember to escape the character ``$``::
583 582
584 inherit extrausers 583 inherit extrausers
585 PASSWD = "\$X\$ABC123\$A-Long-Hash" 584 PASSWD = "\$X\$ABC123\$A-Long-Hash"