diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index dcdc8cb2b5..3653edd916 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -768,6 +768,23 @@ usermod -s /bin/sh tester; \ " + Here is an example that adds two users named "tester-jim" and + "tester-sue" and assigns passwords: + + inherit extrausers + EXTRA_USERS_PARAMS = "\ + useradd -P tester01 tester-jim; \ + useradd -P tester01 tester-sue; \ + " + + Finally, here is an example that sets the root password to + "1876*18": + + inherit extrausers + EXTRA_USERS_PARAMS = "\ + useradd -P 1876*18 root; \ + " +