I am working on a system builder project where I am building an OS image for a PPC 440EP device. What is the correct way of adding passwd or any other command that enables setting password for root user? My current project status is as following.
I have added passwd binary to the project (/bin). Also /etc/passwd file exists. When I try to set root password for QNX with passwd root command, I get the following error:
unable to lock password database (No such file or directory)
After creating the image, adding files or folders to /etc is not doable (I think because it is read-only). Please provide step by step instructions for adding passwd from the beginning. I think I have not been doing it correctly until now.