From: James R. Bull Jr <jrbull@delphi.com>
Subject: Re: HELP bad shell spec for root in /etc/passwd
Date: Sun, 17 Jul 94 04:12:30 -0500 [thread overview]
Message-ID: <Zo-ziXG.jrbull@delphi.com> (raw)
In-Reply-To: CszDzG.10z@world.std.com
Terry Longo <terryl@world.std.com> writes:
>Now, when I log in through the DECWindows promptas root,
>DECWindows tels me "bad shell - will use /bin/sh". I acknowledge
>that, and I get logged in, but with no window manager! All I
>get is the application/customization menu and a console log
>window. If I select an application such as DECterm, nothing
>happens. All I can do is log out.
Sounds like your boot string automatically puts you into multi-user mode
at startup. If you can boot to single user mode only your console will not
be DECwindows. I don't know if the 3000 is like the 5000's, but when you
first power up, and the diagnostics finish, you get a >> prompt on the 5000's.
You could then examine the boot string by issuing a printenv command.
It should be something like "boot 3/rz0/vmunix -a" or similar. If so, try
booting by typing the boot string in but leaving off the -a . This should
bring you into single user mode. The bad news is that the terminal type that
you are dealing with is not realy 'vi' friendly, so if you use 'vipw' to
fix your /etc/passwd file, you'll need to have the ex cheat sheet handy
to edit the file. Might be easier to copy the old password file to something
save (passwd.save), delete it, and cat ->/etc/passwd and enter the necessary
lines for root and daemon accounts by hand, then run mkpasswd, and go to
multi user mode (hit [Ctrl][D]). Now, I haven't ever tried this stunt,
and its 1AM Saturday on my biological clock - so you might want to hold this
approach out for desperation time.
You wouldn't happen to have the boot cd and a cd-rom reader would you? You
could boot from the CD (its very slow), and copy the /etc/passwd file from
the cd (after saveing the damaged original of course).
Lastly, and maybe this will be easier, I don't know your comfort level with
hardware versus software fixes, you could plug a VT terminal into the
serial port in the back of the workstation, and set the CONSOLE variable
to hmm.... well, its 3 on my 5000/240, but it might be different on your
3000. Anyway, if you boot using the console port, you should be able to
go into multiuser mode, log in as root, stty new dec crt, set term vt300
(or whatever it is), and run vipw with no problems. The catch is figureing
out what number to plug into the CONSOLE variable. 0 means use the graphics
card, 3 means use port 3, 2 would mean user port 2. Hopefully your serial
port(s) is(are) numbered.
Good luck, feel free to email me if you have any luck or get stuck.
Jim Bull
Digital (not to imply DEC) Greasemonkey
State of Oregon
Water Resources Department (503)-378-8455 x312
currently JRBULL@DELPHI.COM
next prev parent reply other threads:[~1994-07-17 9:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-15 12:14 HELP bad shell spec for root in /etc/passwd Terry Longo
1994-07-15 21:43 ` Kenneth Graves
1994-07-17 9:12 ` James R. Bull Jr [this message]
1994-07-26 13:28 ` Mark Jeffery
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox