We are adding password to root user. Following is the addition to the conf files.
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "usermod -p $(openssl passwd abcd1234) root"
The above two lines perform the job for us. But the problem is everyone reading the configuration file can know that the password is "abcd1234".
Is there any other way to store the password securely in the configuration or what is the best way to deal in case. We have thousands of devices running embedded Linux, if some one able to get the root password he can easily access all the devices as the password is same. What is the best way to deal this situation