diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-05-26 04:07:07 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-05-26 09:56:25 -0700 |
commit | fea59d54134947c29e1a8967dd1f4e98d3062b81 (patch) | |
tree | 4c368d68ccfee457e22af8e0f41c79299a02ab5b /classes/image.bbclass | |
parent | a60230a9279610fabf213c9f4946b19c703c6fcd (diff) |
image.bbclass: Make zap_root_password to disable root's password not the user root itself.
* With shadow now running pwconv after commit 7c5f81b2139e55622ca2f23ff6b63438d4825d87
It converts :*: passwd entry into equivalent /etc/shadow entry :*:
which in shadow means disable the account as per
http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/shadow-file-formats.html
As a result root can not login unless one boots into shell and then
resets the password.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Chris Larson <clarson@kergoth.com>
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r-- | classes/image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index f695d3c4df..2105195003 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -205,7 +205,7 @@ log_check() { # can decide if they want it or not zap_root_password () { - sed 's%^root:[^:]*:%root:*:%' < ${IMAGE_ROOTFS}/etc/passwd >${IMAGE_ROOTFS}/etc/passwd.new + sed 's%^root:[^:]*:%root::%' < ${IMAGE_ROOTFS}/etc/passwd >${IMAGE_ROOTFS}/etc/passwd.new mv ${IMAGE_ROOTFS}/etc/passwd.new ${IMAGE_ROOTFS}/etc/passwd } |