mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
74cd14cfe5
commit
8beca348c1
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user