From 8beca348c17158ece30341cc1c24cadf7dbf657c Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 30 May 2014 17:08:20 +0300 Subject: ref-manual: Updated example in extrausers.bbclass. I added a couple of examples to show how to set passwords. This is the -P option for adduser. (From yocto-docs rev: 2726fcd3b3c2a5144b23af6ab342832c242f85c1) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'documentation/ref-manual') 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; \ + " + -- cgit v1.2.3-54-g00ecf