Skip navigation.
Home
The QNX Community Portal

View topic - How to set Root Password

Page 1 of 1

How to set Root Password

PostPosted: Mon Aug 10, 2015 12:21 pm
by bhaskara-r
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.

Re: How to set Root Password

PostPosted: Thu Aug 13, 2015 12:24 pm
by denkelly
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".

Re: How to set Root Password

PostPosted: Fri Aug 14, 2015 1:49 am
by maschoen
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.