Actually my problem is caused by changing the default shell for root to
/bin/tsch instead of /bin/sh. I downloaded the tsch thinking it would work
with QNX6, but it doesn't. Now I can't log in. I know I'm an idiot for not
testing it first, but I was in a hurry.
Thanks
How about "press space" during boot. It give you a "safe boot" which you
can restrict only use "base package".
-xtang
I tried booting from the CD and editing the passwd file in the /fs directory
which contains the hard drive. I was able to get to the hard drives
/etc/passwd file and change it back to the sh rather than the tcsh shell. I
thought this would have fixed the problem since it's the only file I
modified. On reboot I still couldn't log in. Changing permissions on passwd
didn't help. I tried again with the CD, and erased the shadow and passwd
files. I replaced passwd with opasswd and I still can't get in. It's like it
doesn't even look at passwd anymore.
My next choice is to reinstall. Argh.
"Xiaodan Tang" <xt...@qnx.com> wrote in message
news:9qnhcc$d69$1...@nntp.qnx.com...
Well, I finally got the news server working for me, so may be a tad late,
but ...
If you can edit passwd ( hopefully you kept backups ) then all you need
do is change the user and group ID of a legit user who already has an
account, to 0 which will cause that user to BE root.
Boot the system, and log in as that user.
Now run passwd in a terminal window.
The system will change root's password to your new entry.
I nearly always leave some back door account with a 200 character
password in this condition on systems that I suspect might get some
abuse by someone with a root password who really should not have it.
It's a deliberate security hole.
Don't touch shadow. That could render ALL passwords bad, and then you
ARE screwed !
--
Cowboy
A plucked goose doesn't lay golden eggs.