I want to add a custom user to my OpenWRT image, so that when that image is flashed onto a board, it should have the custom user account.
I figured out that adding a user to /etc/shadow file will do the trick. But my doubt is how to set the password for the user. It seems there is an entry for password as well, but the password needs to be encrypted. How can I convert plain text password to encrypted.
Also I need to change the default 'root' password. I assume that there should be some way to alter the default 'root' password and give a new one.
NB: I need to do have a image with all these changes and do not want to do it by some script after the system boot