* HELP bad shell spec for root in /etc/passwd
@ 1994-07-15 12:14 Terry Longo
1994-07-15 21:43 ` Kenneth Graves
1994-07-17 9:12 ` James R. Bull Jr
0 siblings, 2 replies; 4+ messages in thread
From: Terry Longo @ 1994-07-15 12:14 UTC (permalink / raw)
If someone could help me out of this jam, I would *greatly*
appreciate it.
I changed root's default shell to be /bin/ksh before realizing
that in this version of Ultrix on a DEC 3000 workstation, the
Korn shell is located at /usr/bin/ksh. The system by default
brings up DECWindows.
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.
I then logged in as a normal user and tried the following:
su root, rlogin/telnet/rsh as root, etc. I get one of two
messages (depending on what I am trying): "bad shell" (since
the /etc/passwd entry is bad), or "not secure terminal".
Needless to say, I cannot perform certain necessary administrative
activities. As a regular user I do not have permissions to /bin
or /usr/bin, so I can't copy /usr/bin/ksh to /bin/ksh to make
the /etc/passwd entry valid.
Is there a way around this? Can I tell the system somehow while
it's booting NOT to bring up DECWindows but to bring up a single
terminal-style login? Is there a trick here I am missing?
- Terry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HELP bad shell spec for root in /etc/passwd
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
1 sibling, 0 replies; 4+ messages in thread
From: Kenneth Graves @ 1994-07-15 21:43 UTC (permalink / raw)
The following is valid for the 2000/300. I think it holds for the
bigger boys too.
Press the halt button to get the console prompt (>>>).
>>>set boot_osflags s
>>>b
This will boot you in single-user mode, which won't be DECWindows
unless you've done really strange things to the init files.
You'll might need to do a
mount -w /
to make the root filesystem read-write.
Use ed to fix the passwd file.
Shutdown -h, change the boot_osflags back to "a", and boot again.
Everything should be fine.
(Is anyone maintaining an FAQ for this group? This seems a natural
for it.)
--kag
--
Kenneth A Graves (kag@village.com) Village of Cambridge sysadmin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HELP bad shell spec for root in /etc/passwd
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
1994-07-26 13:28 ` Mark Jeffery
1 sibling, 1 reply; 4+ messages in thread
From: James R. Bull Jr @ 1994-07-17 9:12 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HELP bad shell spec for root in /etc/passwd
1994-07-17 9:12 ` James R. Bull Jr
@ 1994-07-26 13:28 ` Mark Jeffery
0 siblings, 0 replies; 4+ messages in thread
From: Mark Jeffery @ 1994-07-26 13:28 UTC (permalink / raw)
I didn't see the original note, but if this 3000 is an Alpha AXP system,
you just need to do the following:
boot -fl s
This takes you into single user mode.
boot -fl 2
which takes you to multi user mode, but without xdm started up.
If you manage to log in somehow with windows up, you can stop it like this:
/sbin/init.d/xdm stop
and start it like this:
/sbin/init.d/xdm start
These are about the only System V features I like!
--
Mark Jeffery jeffery@bst.dec.com
Workstation Sales
Digital Equipment
UK
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-07-26 13:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1994-07-26 13:28 ` Mark Jeffery
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox