How to set Root Password

hi i want to know How to set the ROOT Password While my QNX OS Booting ?

After OS boots i can set using Passwd utility. But i need to know the how to set the OS Password during the OS Boot up.

If root has a password, you can try this:

[+session] /bin/login -f root &

If you actually put the root password in the bootscript, it would likely be readable in the plaintext strings from “cat /proc/boot/.script”.

I’m rather confused about what you are asking. When the OS is booting, by definition, you can’t do anything. Booting is the process where the BIOS initializes hardware, loads the OS and then the OS starts it’s own initialization. By the time you can do something, it’s not booting anymore.