FAQ:How do I set or change the root password: Difference between revisions
From Yocto Project
Jump to navigationJump to search
(Create a function to change root password) |
RossBurton (talk | contribs) (use extrausers to set root password) |
||
Line 1: | Line 1: | ||
'''Q:''' How do I set / change the root password? | '''Q:''' How do I set / change the root password? | ||
'''A:''' | '''A:''' Use the extrausers class to set the password: | ||
inherit extrausers | |||
EXTRA_USERS_PARAMS = "useradd -P 1876*18 root;" | |||
This | This sets the root password to "1876*18". | ||
[[Category:FAQ]] [[Category:FAQ-open]] | [[Category:FAQ]] [[Category:FAQ-open]] |
Revision as of 19:55, 16 June 2015
Q: How do I set / change the root password?
A: Use the extrausers class to set the password:
inherit extrausers EXTRA_USERS_PARAMS = "useradd -P 1876*18 root;"
This sets the root password to "1876*18".