My user is in /etc/passwd and has also a password. But this maybe
my problem. I cannot set the password by passwd, because the
filesystem is write protected. So I generate the hash with a small
program using the lib function qnx_crypt and copied the character
to passwd in a editor. Is this wrong, how else can I generate the hash?
In QNX, you have two different encryption methods for passwords: Unix-Style crypt() and qnx_crypt(). Maybe that’s the problem? I never tried to create /etc/shadow myself (That’s where the encryped passwords reside, NOT in /etc/passwd! Here, you only have a hint if the user has a password at all (The “x”)). Can’t you create the entry on a development machine with the passwd command and then include the generated file in the image?