From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5d08d775c39be5f5 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-17 01:34:19 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!news2.near.net!news.delphi.com!usenet From: James R. Bull Jr Newsgroups: comp.sys.dec Subject: Re: HELP bad shell spec for root in /etc/passwd Date: Sun, 17 Jul 94 04:12:30 -0500 Organization: Delphi (info@delphi.com email, 800-695-4005 voice) Message-ID: References: NNTP-Posting-Host: bos1g.delphi.com X-To: Terry Longo Terry Longo 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