root passwd

Hi,

i’am sorry for that,but i lost my root passwd

i can repair it under linux by single mode

and QNX how 2 ?

Thx

If you can boot to the cd, you can mount the filesystems on your harddrive
and do the same.

cheers,

Kris
“QNX-CN” <linux@faq.com.cn> wrote in message
news:a3lupj$iki$1@inn.qnx.com

Hi,

i’am sorry for that,but i lost my root passwd

i can repair it under linux by single mode

and QNX how 2 ?

Thx



\

Thx Kris

but how can i login single mode?

QNX single? o_0


“QNX-CN” <linux@faq.com.cn> дÈëÏûÏ¢ÐÂÎÅ:a3lupj$iki$1@inn.qnx.com

Hi,

i’am sorry for that,but i lost my root passwd

i can repair it under linux by single mode

and QNX how 2 ?

Thx



\

“QNX-CN” <linux@faq.com.cn> wrote in message
news:a3m23l$l1n$1@inn.qnx.com

Thx Kris

but how can i login single mode?

QNX single? o_0

There is not such thing as single mode? ( I don’t even know what that is).

Just boot with the CD, root will have no password. Then I’d remove
the ‘x’ in the /etc/passwd file.

“QNX-CN” <> linux@faq.com.cn> > дÈëÏûÏ¢ÐÂÎÅ:a3lupj$iki$> 1@inn.qnx.com> …
Hi,

i’am sorry for that,but i lost my root passwd

i can repair it under linux by single mode

and QNX how 2 ?

Thx





\

Keep a spare QNX boot floppy around. If you don’t have one now, go
somewhere and make one.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“QNX-CN” <linux@faq.com.cn> wrote in message
news:a3lupj$iki$1@inn.qnx.com

Hi,

i’am sorry for that,but i lost my root passwd

i can repair it under linux by single mode

and QNX how 2 ?

Thx



\

While you boot a RTP system, at “Press space for …” press the
space bar, there is an option (I think it’s F5) for “start a debug
shell…”.

A debug shell will start before fs-pkg running, this gives you
chance to fix any fs-pkg problem, but of cause, you have to
access binaries from their repository. Like:

/pkgs/repository/qnx/os/core-2.1.3/x86/bin/ls /

If your package is correct, but just have problem with like
/etc/rc.d/rc.local, or /etc/passwd, you can type “exit” at
the shell prompt, this will let fs-pkg run, and then stop
in another shell prompt, you are now able to use binaries
from where they are, (but note, you don’t have PATH, so
you have to access them fullpath):

/bin/ls /etc

I believe things like “vi” will also working but I am not
sure (I always “mv” the problem file and reboot :slight_smile:

Of cause, if you can boot from cdrom, then things will be
more easier, cause your harddisk will be mounted as
/fs/hd0-qnx, and you can just go in to change whatever
you want.

-xtang

Bill Caroselli <qtps@earthlink.net> wrote:

Keep a spare QNX boot floppy around. If you don’t have one now, go
somewhere and make one.


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net



“QNX-CN” <> linux@faq.com.cn> > wrote in message
news:a3lupj$iki$> 1@inn.qnx.com> …
Hi,

i’am sorry for that,but i lost my root passwd

i can repair it under linux by single mode

and QNX how 2 ?

Thx



\

In article <a3m5tt$nrq$1@inn.qnx.com>, Mario Charest wrote:

“QNX-CN” <> linux@faq.com.cn> > wrote in message
news:a3m23l$l1n$> 1@inn.qnx.com> …
Thx Kris

but how can i login single mode?

QNX single? o_0

There is not such thing as single mode? ( I don’t even know what that is).

In Linux, you can pass the loader a -b to put the system in “single
user maintainance” mode.
Basicly, it confirms the root password, and gives you an unconfigured
shell single user only. Multiple users and multi tasking do not work
in this mode, because everything is unconfigured, similar to the
qnx “safe” mode.

Just boot with the CD, root will have no password. Then I’d remove
the ‘x’ in the /etc/passwd file.

This accomplishes the same thing, and is the approach I would take.


Cowboy

And on the eighth day, we bulldozed it.

curt@gwis.com (Cowboy) wrote in news:slrna5tj0q.le.curt@desktop.dummy:

In Linux, you can pass the loader a -b to put the system in “single
user maintainance” mode.
Basicly, it confirms the root password, and gives you an unconfigured
shell single user only. Multiple users and multi tasking do not work
in this mode, because everything is unconfigured, similar to the
qnx “safe” mode.

Actually it’s based on what services are provided at what runlevel.
Multitasking is still operational - how else would you be able to run
programs of any use if you couldn’t context switch?

Depending on your Linux/*NIX like setup, you can enter the runlevel that
you require to do the administration simply by executing a script. There
is no need to pass parameters to a loader (ie. implying a reboot).


\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>