How to set the default root password

From ArmadeusWiki
Revision as of 08:34, 11 October 2013 by FabienM (Talk | contribs) (New page: == Introduction == By default on buildroot there is no password for root user. It is not really secure and can be a problem for some packages like dropbear. This page explain how to s...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

By default on buildroot there is no password for root user. It is not really secure and can be a problem for some packages like dropbear. This page explain how to set a default password on our board.

On target

The straitforward way to set the root password is to login on the board then type :

# passwd 
Changing password for root
New password: 
Bad password: too short
Retype password: 
Password for root changed by root

If your password seems to be too simple for the system it will tell it, but the password is changed.

On host

If we have a big production of APF* to flash with the same default password it will be really painfull to change it on each boards. The best way is then to change it under our rootfs.

Links