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 | 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 dcdc8cb2b5..3653edd916 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml | |||
@@ -768,6 +768,23 @@ | |||
768 | usermod -s /bin/sh tester; \ | 768 | usermod -s /bin/sh tester; \ |
769 | " | 769 | " |
770 | </literallayout> | 770 | </literallayout> |
771 | Here is an example that adds two users named "tester-jim" and | ||
772 | "tester-sue" and assigns passwords: | ||
773 | <literallayout class='monospaced'> | ||
774 | inherit extrausers | ||
775 | EXTRA_USERS_PARAMS = "\ | ||
776 | useradd -P tester01 tester-jim; \ | ||
777 | useradd -P tester01 tester-sue; \ | ||
778 | " | ||
779 | </literallayout> | ||
780 | Finally, here is an example that sets the root password to | ||
781 | "1876*18": | ||
782 | <literallayout class='monospaced'> | ||
783 | inherit extrausers | ||
784 | EXTRA_USERS_PARAMS = "\ | ||
785 | useradd -P 1876*18 root; \ | ||
786 | " | ||
787 | </literallayout> | ||
771 | </para> | 788 | </para> |
772 | </section> | 789 | </section> |
773 | 790 | ||