FAQ:How do I set or change the root password: Difference between revisions
From Yocto Project
Jump to navigationJump to search
RossBurton (talk | contribs) (use extrausers to set root password) |
No edit summary |
||
Line 4: | Line 4: | ||
inherit extrausers | inherit extrausers | ||
EXTRA_USERS_PARAMS = " | EXTRA_USERS_PARAMS = "usermod -P 1876*18 root;" | ||
This sets the root password to "1876*18". | This sets the root password to "1876*18". | ||
'''Q:''' How do I add users? | |||
'''A:''' Use the extrausers class to and the user and set the password: | |||
inherit extrausers | |||
EXTRA_USERS_PARAMS = "useradd -P 2015*08 myUser;" | |||
This adds the user myUser and sets the password to "2015*08". | |||
[[Category:FAQ]] [[Category:FAQ-open]] | [[Category:FAQ]] [[Category:FAQ-open]] |
Revision as of 21:21, 7 August 2015
Q: How do I set / change the root password?
A: Use the extrausers class to set the password:
inherit extrausers EXTRA_USERS_PARAMS = "usermod -P 1876*18 root;"
This sets the root password to "1876*18".
Q: How do I add users?
A: Use the extrausers class to and the user and set the password:
inherit extrausers EXTRA_USERS_PARAMS = "useradd -P 2015*08 myUser;"
This adds the user myUser and sets the password to "2015*08".