Hello Team,
My customer is going into mass production and he would like to have one master 'root' password for all their devices.
By default, the login on "root" is enabled on yocto, to enable quicker development and debugging.
This feature is enabled by setting the flag "debug-tweaks" in local.conf file in yocto build.
The exact line looks like this:
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
The way to add a password according to yocto is:
firstly to comment out the 'debug-tweaks' flag, so the yocto does not force an empty root password, and it is expected from the developer to provide one
secondly is to provide a password and/or other users into the image like this:
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "usermod -p '$(openssl passwd TEST1234)' root;"
Please find the customer inquiries below:
1) With the above configuration, we have a working root password but is limited to only 8 characters,
Please advise back on how to overcome the characters limitation in log-in password on the?
2) also with the method above we are forced to change the password of root when we log-in to the system for the first time.
Please advise how we can avoid from the system to request changing the password when login to the system for the first time?
Waiting for your kind feedback, Thanks a lot.
KR,
Shai