diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2014-05-30 17:08:20 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-30 16:32:19 +0100 |
commit | 8beca348c17158ece30341cc1c24cadf7dbf657c (patch) | |
tree | 820375015dac49fdc1a0d7d63de753b931c7d3ec /documentation | |
parent | 74cd14cfe5c32a9af9e0b7d28f79df15b4ec2e14 (diff) | |
download | ast2050-yocto-poky-8beca348c17158ece30341cc1c24cadf7dbf657c.zip ast2050-yocto-poky-8beca348c17158ece30341cc1c24cadf7dbf657c.tar.gz |
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 <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/ref-classes.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index dcdc8cb..3653edd 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -768,6 +768,23 @@ usermod -s /bin/sh tester; \ " </literallayout> + Here is an example that adds two users named "tester-jim" and + "tester-sue" and assigns passwords: + <literallayout class='monospaced'> + inherit extrausers + EXTRA_USERS_PARAMS = "\ + useradd -P tester01 tester-jim; \ + useradd -P tester01 tester-sue; \ + " + </literallayout> + Finally, here is an example that sets the root password to + "1876*18": + <literallayout class='monospaced'> + inherit extrausers + EXTRA_USERS_PARAMS = "\ + useradd -P 1876*18 root; \ + " + </literallayout> </para> </section> |