
>From ratinox@unilab.dfci.harvard.edu Thu Sep 12 14:55:23 1996
Return-Path: <ratinox@unilab.dfci.harvard.edu>
Received: from unilab.dfci.harvard.edu by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id OAA06682; Thu, 12 Sep 1996 14:55:21 -0400
Received: (from ratinox@localhost) by unilab.dfci.harvard.edu (8.7.5/8.7.3) id PAA06532; Thu, 12 Sep 1996 15:00:19 -0400 (EDT)
From: Richard Pieri <ratinox@unilab.dfci.harvard.edu>
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
Subject: Re: No Shell for supper user
References: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Date: 12 Sep 1996 15:00:05 -0400
Message-ID: <x7685jmudm.fsf@unilab.dfci.harvard.edu>
In-Reply-To: bobby@c2sism1.monmouth.army.mil's message of Thu, 12 Sep 1996 14:28:09 -0400
Lines: 28
X-Mailer: Gnus v5.2.40/Emacs 19.34
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1004

-----BEGIN PGP SIGNED MESSAGE-----

>>>>> "BH" == Bobby Huynh <bobby@c2sism1.monmouth.army.mil> writes:

supper user?  is this the account you log into for dinner? :)

BH> Somehow I edit /etc/passwd to change current setting shell to ksh
BH> for root.

Dig out your installation CD, boot that, mount the local root disk, and
edit it back to /bin/sh.  *NEVER* have anything other than /bin/sh as
root's shell.  Other UID 0 accounts can have other shells, but root
should never be anything but /bin/sh.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3
Charset: noconv

iQCVAwUBMjhduJ6VRH7BJMxHAQE0WwP/YIIDUAg8dBwQLDmK+zxXRrzDzv+N+E0V
IB6cxd9W7nUdDOmrUPu/fKQ4ODRVQhlzJpIcokKJti+mbXIErr7vcv3j7oyBZ4Jv
s/UCVBIeGSfB0HDFrqq3rxehH2fpP1N6IVCFN6vw9+vuxyYAojG7nKT/JaolWHBM
fU8Ddctm//0=
=4KPK
-----END PGP SIGNATURE-----
-- 
Richard Pieri/Information Services \ Never sleep alone when you can sleep on
<ratinox@unilab.dfci.harvard.edu>   \ someone's face. -A cat's guide to life
http://www.dfci.harvard.edu/         \ 

>From Bill.O'Brien@eng.canadair.ca Thu Sep 12 15:01:23 1996
Return-Path: <bo084426@eng.canadair.ca>
Received: from glengoyne.canadair.ca by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06696; Thu, 12 Sep 1996 15:01:16 -0400
Received: from moosehead.eng.canadair.ca by glengoyne.canadair.ca with SMTP id AA21077
  (5.65+/IDA-1.3.5 for bobby@c2sism1.monmouth.army.mil); Thu, 12 Sep 96 15:06:41 -0400
Received: from eng.canadair.ca (cat944.eng.canadair.ca) by moosehead.eng.canadair.ca with SMTP id AA28039
  (5.65c/IDA-1.3.5 for bobby@c2sism1.monmouth.army.mil); Thu, 12 Sep 1996 15:08:33 -0400
From: Bill.O'Brien@eng.canadair.ca
Received: (bo084426@localhost) by eng.canadair.ca (8.7.5/8.6.6) id PAA40346; Thu, 12 Sep 1996 15:08:53 -0400
Date: Thu, 12 Sep 1996 15:08:53 -0400
Subject: Re: No Shell for supper user
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
Message-Id: <bo084426-9608121908.AA000343274@cat944.eng.canadair.ca>
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 630

How are you su'ing

try

$su root

NOT $su - root

which shld give you root auth with your normal user environment.  Then edit
/etc/passwd and then run pwconv to synchronize things.

Don't know if this will help....Good luck.  Looking forward to your summary!

Cheers



--
-----------------------------------------------------------------------------
  Bill O'Brien 			           400 Chemin de la Cote-Vertu
  EIS Department			   Dorval,(Quebec) H4S-1Y9
  Bombardier-Canadair	 		   Tel : (514) 855-5001 Ext. 6684
  Internet: bill.o'brien@eng.canadair.ca   Fax : (514) 855-7301
"That which is important is invisible to the eye!"


>From colinj@parc.anglia.ac.uk Thu Sep 12 15:02:24 1996
Return-Path: <colinj@parc.anglia.ac.uk>
Received: from firefly by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06701; Thu, 12 Sep 1996 15:02:20 -0400
Received: from maverick.parc.anglia.ac.uk by firefly (SMI-8.6/SMI-SVR4)
	id UAA10416; Thu, 12 Sep 1996 20:03:27 +0100
Received: by maverick.parc.anglia.ac.uk (SMI-8.6/SMI-SVR4)
	id UAA19816; Thu, 12 Sep 1996 20:00:53 +0100
Date: Thu, 12 Sep 1996 20:00:53 +0100
From: colinj@parc.anglia.ac.uk (Colin Johnston)
Message-Id: <199609121900.UAA19816@maverick.parc.anglia.ac.uk>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Cc: colinj@parc.anglia.ac.uk
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: HDonS2A3YE2uP08uh5efEA==
Content-Length: 164

Hi,

boot off cdrom and then edit out the bad info in the /etc/passwd file

Hope this helps

Bye Colin Johnston
PARC Research Team
Anglia Polytechnic University
UK

>From tommy@vumclib.mc.vanderbilt.edu Thu Sep 12 15:02:45 1996
Return-Path: <tommy@vumclib.mc.vanderbilt.edu>
Received: from vumclib.mc.vanderbilt.edu by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06705; Thu, 12 Sep 1996 15:02:40 -0400
Received: from [160.129.203.10] (tommy.mc.vanderbilt.edu [160.129.203.10]) by vumclib.mc.vanderbilt.edu (8.7.5/8.7.5) with ESMTP id OAA06877 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 14:07:46 -0500 (CDT)
Message-Id: <v03007800ae5e0ef9a50a@[205.241.232.107]>
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Date: Thu, 12 Sep 1996 14:07:45 -0500
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
From: Tommy Williams <tommy@vumclib.mc.vanderbilt.edu>
Subject: Re: No Shell for supper user
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: eg66YCa+87CJW0PoUt1qhQ==
Content-Length: 1376

At 13:28 -0500 on 09/12/96, Bobby Huynh wrote:

> Somehow I edit /etc/passwd to change current setting shell to ksh for
>root.  I
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as
>"root" it
> give a message "no shell" and kick back to login prompt.  I even try to
>boot at
> single user (ok> boot -s or boot -S).  It give me a same error.  I did
>try to
> log in as moral user and su to root but it also fail.  Could anyone
>please help
> me with this.  My teammate is going to hang me soon.

If you're using Solaris and have a CD-ROM drive attached:

Boot off the Solaris 2.x Installation CD-ROM (by going to ok> prompt with
disk in CD-ROM drive and typing 'boot cdrom').
>From there, use the command window to mount your / partition in the /mnt space:
mount /dev/dsk/c0t3d0s0 /mnt (substitute the proper path to your root
partition)

Edit the /etc/passwd file and correct your mistake.

Then:

shutdown -i0 -y -g0
ok> boot

And you should be back in business.

You may even be able to just do a reboot from the command tool, but I'm not
sure whether or not the system will boot from the CD again or whether it
will use the internal drive.

If you're not using Solaris with a CD-ROM, you better get help from some of
the other people. ;) Good luck.

--
Tommy Williams
mailto:tommy@vumclib.mc.vanderbilt.edu
  <URL:http://www.mc.vanderbilt.edu/~tommy/>



>From ric@rtd.com Thu Sep 12 15:05:41 1996
Return-Path: <ric@rtd.com>
Received: from seagull.rtd.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06709; Thu, 12 Sep 1996 15:04:07 -0400
Received: (from ric@localhost) by seagull.rtd.com (8.7.5/8.7.3) id MAA00212 for bobby@c2sism1.monmouth.army.mil; Thu, 12 Sep 1996 12:09:22 -0700 (MST)
Date: Thu, 12 Sep 1996 12:09:22 -0700 (MST)
From: Ric Anderson <ric@rtd.com>
Message-Id: <199609121909.MAA00212@seagull.rtd.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 802

Boot from the CD-ROM.  When the first screen of the install
stuff comes up, click on the background with the right mouse
button.  This will pop up a menu from which you can pick a
command tool or shell tool.  Once you have that, enter
the following commands
	mount /dev/dsk/c0t3d0s0 /mnt
	cd /mnt/etc
	edit passwd to change roots shell back to /sbin/sh
	cd /
	umount /mnt
	reboot
and you should be back in business.  Leave root's shell alone.  Its
a statically linked shell, and you will need that some days.

I have a section in /.profile that prompts for an alternate
environment, but you can bypass that with a simple carriage
return.

That lets you run an alternate shell if you wish, but doesn't
make it the default.

Cheers,
Ric (<ric@rtd.com> "Ric Anderson", using RTD's public internet access)

>From colinj@parc.anglia.ac.uk Thu Sep 12 15:10:25 1996
Return-Path: <colinj@parc.anglia.ac.uk>
Received: from firefly by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06714; Thu, 12 Sep 1996 15:10:12 -0400
Received: from maverick.parc.anglia.ac.uk by firefly (SMI-8.6/SMI-SVR4)
	id UAA10673; Thu, 12 Sep 1996 20:11:19 +0100
Received: by maverick.parc.anglia.ac.uk (SMI-8.6/SMI-SVR4)
	id UAA19839; Thu, 12 Sep 1996 20:08:44 +0100
Date: Thu, 12 Sep 1996 20:08:44 +0100
From: colinj@parc.anglia.ac.uk (Colin Johnston)
Message-Id: <199609121908.UAA19839@maverick.parc.anglia.ac.uk>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Cc: colinj@parc.anglia.ac.uk
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: l9oCYACA00xe8vhc9dzSpA==
Content-Length: 610

Hi
forgot to say you have to mount the root partition once 
you have booted off cdrom.

ie install screen appears
DO NOT continue
right mouse click and load up console window

see below for mount command

mkdir /a/tmp

mount -F nfs -o rw /dev/dsk/c0t0d0s0 /a/tmp
or
mount -F nfs -o rw /dev/rdsk/c0t0d0s0 /a/tmp
(not sure which is the correct one to mount (try both) one wont mount then try
other)

Why do I know this info, well the root harddrive bust(Thanks SEAGATE) and
the replacement needed to be restored from tape.

Hope this helps

Bye Colin Johnston
PARC Research Team
Anglia Polytechnic University
UK

>From popp@luey.redars.ca.boeing.com Thu Sep 12 15:13:05 1996
Return-Path: <popp@luey.redars.ca.boeing.com>
Received: from atc.boeing.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06723; Thu, 12 Sep 1996 15:13:03 -0400
Received: by atc.boeing.com (5.65/splinter.boeing.com)
	id AA16358; Thu, 12 Sep 1996 12:17:58 -0700
Received: from luey.redars.ca.Boeing.COM by splinter.boeing.com with ESMTP
	(1.37.109.16/16.2) id AA091745777; Thu, 12 Sep 1996 12:16:17 -0700
Received: from fledge.redars.SIL by luey.redars.ca.Boeing.COM (SMI-8.6/SMI-SVR4)
	id MAA02947; Thu, 12 Sep 1996 12:17:08 -0700
Date: Thu, 12 Sep 1996 12:17:08 -0700
From: popp@luey.redars.ca.boeing.com (Jeff Popp                  )
Message-Id: <199609121917.MAA02947@luey.redars.ca.Boeing.COM>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 653



You have no alternative but to boot from a CDROM, mount the disk
partition and the re-edit the passwd file.

Most of us have done the same thing.............ONCE!!



----------------------------------------------------------------------

   .....UNIX for the sake of the kingdom of heaven.  - Matthew 19:12


Jeff Popp           Boeing REDARS       popp@luey.redars.ca.boeing.com

       voice (206) 237-7391                  pager (206) 541-ALKI

----------------------------------------------------------------------

  The secret to this job is working half days. Fortunately, I get to
           choose which 12 hour period that entails.........

>From TPlesha@seacosd.navy.mil Thu Sep 12 15:18:44 1996
Return-Path: <TPlesha@seacosd.navy.mil>
Received: from nslcdp-nt003.seacosd.navy.mil by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06728; Thu, 12 Sep 1996 15:18:33 -0400
Received: by nslcdp-nt003.seacosd.navy.mil with Microsoft Exchange (IMC 4.0.837.3)
	id <01BBA0A5.41526EF0@nslcdp-nt003.seacosd.navy.mil>; Thu, 12 Sep 1996 12:23:50 -0700
Message-ID: <c=US%a=_%p=NAVY%l=NSLCDP-NT003-960912192346Z-1298@nslcdp-nt003.seacosd.navy.mil>
From: "Plesha, Thomas A. (NSLC Pacific)" <TPlesha@seacosd.navy.mil>
To: "'bobby@c2sism1.monmouth.army.mil'" <bobby@c2sism1.monmouth.army.mil>
Subject: RE: No Shell for supper user
Date: Thu, 12 Sep 1996 12:23:46 -0700
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: cc4Twn2bT0rIZNeQVa5J1w==
Content-Length: 1133

Boot to single user mode from the CD-ROM (boot cdrom -s).  Mount your
drive, set your term type to sun, and vi the /etc/passwd file.  Have
fun.
--
H.A.N.D. ;-)
Thomas A. Plesha                        Physical: NSLC Pacific
Voice (510)246-5949                               P.O. Box 1307
FAX (510)246-5944                                 Benicia, CA 94510-4037
http://www.seacosd.navy.mil

		"Every morning is the dawn of a new error"


>----------
>From:
>	bobby@c2sism1.monmouth.army.mil[SMTP:bobby@c2sism1.monmouth.army.mil]
>Sent: 	Thursday, September 12, 1996 11:28
>To: 	sun-managers@ra.mcs.anl.gov
>Subject: 	No Shell for supper user
>
>Hi al,
>
>Somehow I edit /etc/passwd to change current setting shell to ksh for
>root.  I 
>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as
>"root" it 
>give a message "no shell" and kick back to login prompt.  I even try to
>boot at 
>single user (ok> boot -s or boot -S).  It give me a same error.  I did
>try to 
>log in as moral user and su to root but it also fail.  Could anyone
>please help 
>me with this.  My teammate is going to hang me soon.
>
>Thank you 
>

>From Brian_White.ERIM@notes.erim.org Thu Sep 12 15:20:44 1996
Return-Path: <Brian_White.ERIM@notes.erim.org>
Received: from csd5b by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06733; Thu, 12 Sep 1996 15:20:38 -0400
Received: from notes.erim.org by csd5b (5.x/SMI-SVR4)
	id AA23190; Thu, 12 Sep 1996 15:26:36 -0400
Received: by notes.erim.org (IBM OS/2 SENDMAIL VERSION 1.3.14/1.0)
	  id AA8185; Thu, 12 Sep 96 15:25:51 -0400
Message-Id: <9609121925.AA8185@notes.erim.org>
Received: from ERIM with "Lotus Notes Mail Gateway for SMTP" id
  20001ED6D54B70D9852563A3006A817B; Thu, 12 Sep 96 15:25:49
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
From: Brian White <Brian_White.ERIM@notes.erim.org>
Date: 12 Sep 96 15:24:51
Subject: Re: No Shell for supper user
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: wRKYSmf0ksSYhxTr6ujBFw==
Content-Length: 331

I am speaking from experience.  The only way to get around this problem is to 
boot cdrom and manually change root passwd.  Just delete the old encrypted 
passwd and when you log in it won't require a passwd.  Then set it.  I kjnow it 
sounds like a pain but it is the only way I have found.  good Luck

Brian White
white@erim.org

>From root@wisdom.Maf.Nasa.Gov Thu Sep 12 15:24:11 1996
Return-Path: <root@wisdom.maf.nasa.gov>
Received: from wisdom.maf.nasa.gov.Maf.Nasa.Gov by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06739; Thu, 12 Sep 1996 15:24:08 -0400
Received: by wisdom.maf.nasa.gov.Maf.Nasa.Gov (4.1/SMI-4.1)
	id AA18883; Thu, 12 Sep 96 14:29:22 CDT
Date: Thu, 12 Sep 96 14:29:22 CDT
From: root@wisdom.Maf.Nasa.Gov
Message-Id: <9609121929.AA18883@wisdom.maf.nasa.gov.Maf.Nasa.Gov>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 962


> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 14:26:56 1996
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

Bobby,

You will have to boot from a cdrom and mount the / partition to
modify the password file.

Thanks, Mark

------------------------------------------
  Mark Hargrave, Sr. Unix Systems Manager
  Lockheed Martin Manned Space Systems
  PO Box 29304 Mail Stop: 3414 
  New Orleans, LA 70189

  Phone:  504-257-1242
  E-Mail: meh@wisdom.maf.nasa.gov
------------------------------------------

>From benji@hnt.com Thu Sep 12 15:28:15 1996
Return-Path: <benji@hnt.com>
Received: from hnt.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06744; Thu, 12 Sep 1996 15:28:04 -0400
Received: (from benji@localhost) by hnt.com (8.7.5/8.7.3) id PAA16062; Thu, 12 Sep 1996 15:33:32 -0400 (EDT)
Date: Thu, 12 Sep 1996 15:33:32 -0400 (EDT)
From: Benjamin Cline <benji@hnt.com>
X-Sender: benji@columbus
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.SUN.3.91.960912153251.9467L-100000@columbus>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: fy2mCjCDiWUy3fcdzJ8Kzw==
Content-Length: 867

On Thu, 12 Sep 1996, Bobby Huynh wrote:
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
I would boot into single user mode off the CD-ROM or network (if you don't
already have network booting set-up, booting off the CD is going to be 
much easier), fsck and mount the root partition, and fix the passwd file.

	benji

--
Benjamin R. Cline       Harrison & Troxell, Inc.         benji@hnt.com
                     Quis Custodiet Ipsos Custodes?



>From duane@cris.com Thu Sep 12 15:29:24 1996
Return-Path: <duane@cris.com>
Received: from franklin.cris.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06749; Thu, 12 Sep 1996 15:29:13 -0400
Received: from warp.cris.com (warp [199.3.12.181])
	by franklin.cris.com (8.7.5/(96/09/02 2.52))
	id PAA24102; Thu, 12 Sep 1996 15:34:24 -0400 (EDT)
	[1-800-745-2747 The Concentric Network]
From: "Duane R. Larkin" <duane@cris.com>
Errors-To: duane@cris.com
Received: by warp.cris.com (8.7.5) id PAA28269; Thu, 12 Sep 1996 15:34:23 -0400 (EDT)
Message-Id: <199609121934.PAA28269@warp.cris.com>
Subject: Re: No Shell for supper user
To: bobby@c2sism1.monmouth.army.mil
Date: Thu, 12 Sep 1996 15:34:23 -0400 (EDT)
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil> from "Bobby Huynh" at Sep 12, 96 02:28:09 pm
X-Mailer: ELM [version 2.4 PL25]
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: Toe4yTYjwLG4LtyMeVriYQ==
Content-Length: 1272

The only hope is to boot from the cd-rom.  "boot -s cdrom" from the boot
prom.

Good Luck!
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 


-- 
/------------------------------------------------------------------------\
|                                                                        |
| Duane R. Larkin                 Voice:  517-895-1621                   |
| System Admin.                   Fax:    517-895-1610                   |
| Concentric Network Corp.        E-mail: duane@concentric.net           |
| 400 Forty First St.                                                    |
| Bay City, Mi. 48708             Thank you and have a nice day!         |
|                                                                        |
\------------------------------------------------------------------------/

>From poffen@San-Jose.ate.slb.com Thu Sep 12 15:35:22 1996
Return-Path: <poffen@San-Jose.ate.slb.com>
Received: from San-Jose.ate.slb.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06753; Thu, 12 Sep 1996 15:35:18 -0400
Received: from augusta.San-Jose.ate.slb.com by San-Jose.ate.slb.com (4.1/SMI-4.1-DNI-7.0.1-Z)
	id AA22040; Thu, 12 Sep 96 12:40:39 PDT
From: poffen@San-Jose.ate.slb.com (Russ Poffenberger)
Message-Id: <9609121940.AA22040@San-Jose.ate.slb.com>
Date: Thu, 12 Sep 1996 12:40:39 -0700 (PDT)
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
X-Mailer: Ishmail 1.2.2-960610-sun <http://www.halsoft.com/products/ishmail>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: seMvqHXa4fmuqoY+PUscBw==
Content-Length: 941

bobby@c2sism1.monmouth.army.mil (Bobby Huynh) wrote:
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it
> give a message "no shell" and kick back to login prompt.  I even try to boot
> at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please
> help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 

Just about your only alternative is to boot the system from some other means
(like CDROM) to a single user shell, then use an editor to fix the damage.


--
Russ Poffenberger               Engineering Specialist
Schlumberger Technologies ATE   DOMAIN: poffen@San-Jose.ate.slb.com
1601 Technology Drive		CIS:	72401,276
San Jose, Ca. 95110             Voice: (408)437-5254  FAX: (408)437-5246

>From cledbett@homeaccount.com Thu Sep 12 15:39:40 1996
Return-Path: <cledbett@homeaccount.com>
Received: from engr by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06758; Thu, 12 Sep 1996 15:39:32 -0400
Received: from engr by engr (SMI-8.6/SMI-SVR4)
	id PAA21021; Thu, 12 Sep 1996 15:43:57 -0400
Sender: cledbett@homeaccount.com
Message-ID: <323867FC.78A0@homeaccount.com>
Date: Thu, 12 Sep 1996 15:43:56 -0400
From: Craig Ledbetter <cledbett@homeaccount.com>
Organization: HANI
X-Mailer: Mozilla 3.0 (X11; U; SunOS 5.5 sun4u)
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
References: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: tzXubrpTkQOlM9/ZxQHOFw==
Content-Length: 679

Bobby Huynh wrote:
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it
> give a message "no shell" and kick back to login prompt.  I even try to boot at
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to
> log in as moral user and su to root but it also fail.  Could anyone please help
> me with this.  My teammate is going to hang me soon.
> 
> Thank you
I hope you have a CD-ROM on the system, because you need to boot from it
with the installation media.  Once it boots mount the / file system and
edit /etc/passwd

Craig

>From edgrimm@neptune.mtc.ti.com Thu Sep 12 15:40:24 1996
Return-Path: <edgrimm@neptune.mtc.ti.com>
Received: from dragon.ti.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06765; Thu, 12 Sep 1996 15:40:13 -0400
Received: from landru.mtc.ti.com ([156.117.62.46]) by dragon.ti.com (8.6.13) with ESMTP id OAA13473 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 14:45:29 -0500
Received: from neptune.mtc.ti.com (neptune.mtc.ti.com [156.117.62.225]) by landru.mtc.ti.com (8.6.12/8.6.12) with ESMTP id OAA31110 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 14:44:59 -0500
Received: (from edgrimm@localhost) by neptune.mtc.ti.com (8.6.12/8.6.12) id OAA29003 for bobby@c2sism1.monmouth.army.mil; Thu, 12 Sep 1996 14:44:53 -0500
From: Edward Grimm <edgrimm@neptune.mtc.ti.com>
Message-Id: <199609121944.OAA29003@neptune.mtc.ti.com>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil> from Bobby Huynh at "Sep 12, 96 02:28:09 pm"
To: bobby@c2sism1.monmouth.army.mil
Date: Thu, 12 Sep 1996 14:44:52 -0500 (CDT)
X-Mailer: ELM [version 2.4ME+ PL25 (25)]
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: vGMxqCNEintrQMkQpvZFfA==
Content-Length: 1433

Bobby Huynh wrote:
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for
> root.  I missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log
> in as "root" it give a message "no shell" and kick back to login
> prompt.  I even try to boot at single user (ok> boot -s or boot -S).
> It give me a same error.  I did try to log in as moral user and su to
> root but it also fail.  Could anyone please help me with this.  My
> teammate is going to hang me soon.

Have you tried ftping in as root?  Many machines are set up to prevent
this, but it's the one way you can get in without a shell.  Another
thing I can think of is make a boot floppy, but many systems are set
up so that only root can do this.  If you have another machine that
you have root on, though, you may be able to do this.  Unfortunately,
I can't tell you how to make a Solaris boot disk, as I've never had
the need to do it.

I personally keep several super-user accounts on my system in case I
screw one up.  They do NOT share directories or anything.  They even
use different shells, so if I putz up the shell root uses, I'm not
screwed.  (I even have one that uses a dumbed-down version of sh,
which is kept away from the standard executables, and set to be as
impervious as possible.  It also has the password in /etc/passwd in
addition to /etc/shadow.  Unless crypt also fails, I *WILL* be able
to get into this account.)

Ed

>From jamesm@matrix.newpaltz.edu Thu Sep 12 15:42:16 1996
Return-Path: <jamesm@matrix.newpaltz.edu>
Received: from matrix.newpaltz.edu by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06776; Thu, 12 Sep 1996 15:42:10 -0400
Received: (from jamesm@localhost) by matrix.newpaltz.edu (8.7.5/8.6.9) id PAA21049 for bobby@c2sism1.monmouth.army.mil; Thu, 12 Sep 1996 15:47:00 -0400 (EDT)
From: james mularadelis <jamesm@matrix.newpaltz.edu>
Message-Id: <199609121947.PAA21049@matrix.newpaltz.edu>
Subject: Re: No Shell for supper user
To: bobby@c2sism1.monmouth.army.mil
Date: Thu, 12 Sep 1996 15:47:00 -0400 (EDT)
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil> from "Bobby Huynh" at Sep 12, 96 02:28:09 pm
X-Mailer: ELM [version 2.4 PL25]
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: oSyFXXkPesufY6yzSxfxKA==
Content-Length: 915

> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

boot using a cdrom disk (using solaris type: boot cdrom -s) and then
mount the root partition to /mnt and edit the password file correcting
your error.  since you're booting from the cdrom it won't ask you for
a password

james


-- 
James Mularadelis - UNIX/NetWare Systems Programmer
Computer Services HAB 50 - SUNY New Paltz - New Paltz, NY 12561
(914) 257-3130 - jamesm@matrix.newpaltz.edu, james@newpaltz.edu

>From meritj@fincen.treas.gov Thu Sep 12 15:42:18 1996
Return-Path: <meritj@fincen.treas.gov>
Received: from tcs_gateway1.treas.gov by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06780; Thu, 12 Sep 1996 15:42:16 -0400
Received: by tcs_gateway1.treas.gov id AA08891
  (InterLock SMTP Gateway 3.0 for bobby@c2sism1.monmouth.army.mil);
  Thu, 12 Sep 1996 15:47:37 -0400
Received: by tcs_gateway1.treas.gov (Internal Mail Agent-4);
  Thu, 12 Sep 1996 15:47:37 -0400
Received: by tcs_gateway1.treas.gov (Internal Mail Agent-3);
  Thu, 12 Sep 1996 15:47:37 -0400
Received: by tcs_gateway1.treas.gov (Internal Mail Agent-2);
  Thu, 12 Sep 1996 15:47:37 -0400
Received: by tcs_gateway1.treas.gov (Internal Mail Agent-1);
  Thu, 12 Sep 1996 15:47:37 -0400
Date: Thu, 12 Sep 1996 15:50:45 -0400
From: meritj@fincen.treas.gov (Jim Meritt)
Message-Id: <199609121950.PAA00326@dirham.fincen.gov>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Cc: sun-managers@ra.mcs.anl.gov
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 699


Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
give a message "no shell" and kick back to login prompt.  I even try to boot at 
single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
log in as moral user and su to root but it also fail.  Could anyone please help 
me with this.  My teammate is going to hang me soon.
.............................................................................

ftp does not use the default shell.  You could make a good passwd file and ftp it into the right place.

Unless you have it set so root cannot ftp in...

Jim Meritt

>From birger@Vest.Sdata.No Thu Sep 12 15:42:25 1996
Return-Path: <birger@Vest.Sdata.No>
Received: from Vest.Sdata.No by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06781; Thu, 12 Sep 1996 15:42:17 -0400
Received: from bryggen by Vest.Sdata.No (SMI-8.6/SMI-SVR4)
	id VAA18195; Thu, 12 Sep 1996 21:35:18 +0200
Date: Thu, 12 Sep 1996 21:48:33 +0200 (MET DST)
From: "Birger A. Wathne" <birger@Vest.Sdata.No>
Reply-To: "Birger A. Wathne" <birger@Vest.Sdata.No>
Subject: Re: No Shell for supper user
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
In-Reply-To: "Your message with ID" <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Roam 0.9.1.842557713.11042.birger@mailhost>
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: RiPePnx+2hFBWm41daQpqQ==
Content-Length: 224


You have to boot from CD or network.

And *never* change roots shell from /sbin/sh. This shell is statically
linked. If you run into problems and loose your shared libraries, this
is the only shell that will work.

Birger


>From osvaldo@platinum.apexvoice.com Thu Sep 12 15:48:34 1996
Return-Path: <osvaldo@platinum.apexvoice.com>
Received: from ns.apexvoice.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06792; Thu, 12 Sep 1996 15:48:29 -0400
Received: from PLATINUM.apexvoice.com by ns.apexvoice.com (5.65/1.35)
	id AA02413; Thu, 12 Sep 96 10:53:50 -0700
Received: by platinum.apexvoice.com (SMI-8.6/SMI-SVR4)
	id LAA03233; Thu, 12 Sep 1996 11:57:02 -0700
Date: Thu, 12 Sep 1996 11:57:02 -0700
From: osvaldo@platinum.apexvoice.com (Osvaldo Gold)
Message-Id: <199609121857.LAA03233@platinum.apexvoice.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 597


I did the exact same thing and ended up calling SUN for help!!!!

Do the following:
1. Go get your boot CDROM or find out how to boot from the network.
2. Type /etc/mount and take note of the device of your root file system.
3. Turn the machine off 
4. Boot from the CDROM with "ok> boot cdrom -s" or from the network
5. fsck your root file system
6. Mount root on /mnt 
7. Type /mnt/bin/vi /mnt/etc/passwd and fix your command line.
8. unmount /mnt
9. reboot.

That (or something very similar to this) should do it.
Good luck

-- Osvaldo Gold, Apex Voice Communications
-- osvaldo@apexvoice.com

>From Rasana.Atreya@library.ucsf.edu Thu Sep 12 15:49:14 1996
Return-Path: <Rasana.Atreya@library.ucsf.edu>
Received: from library.ucsf.edu  by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06796; Thu, 12 Sep 1996 15:49:07 -0400
Received: from helios.ckm.ucsf.edu by library.ucsf.edu  with SMTP id AA19854
  (5.67a8/IDA-1.5 for <bobby@c2sism1.monmouth.army.mil>); Thu, 12 Sep 1996 12:52:30 -0700
Message-Id: <199609121952.AA19854@library.ucsf.edu >
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
Subject: Re: No Shell for supper user
In-Reply-To: Your message of "Thu, 12 Sep 1996 14:28:09 EDT."
             <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Date: Thu, 12 Sep 1996 12:49:35 PDT
From: Rasana Atreya <Rasana.Atreya@library.ucsf.edu>
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1287

When you cannot login to the system even in single user mode, go to 
ok prompt (stop-a). Then 
ok boot cdrom -sw (single user and writable incase you want to vi) Then - 
mount /dev/dsk/ct3d0s0 /a - 
cd /a/etc 
Mount point /a is provided on cdrom so that you can attach things to it, since 
it is read-only.

Rasana

> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  
I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" i
t 
> give a message "no shell" and kick back to login prompt.  I even try to boot 
at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to
 
> log in as moral user and su to root but it also fail.  Could anyone please he
lp 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Rasana Atreya                                     Voice:  (415) 476-3623  ~
~ System Administrator                              Fax:    (415) 476-4653  ~
~ Library & Ctr for Knowledge Mgnt, Univ. of California at San Francisco    ~
~ 530 Parnassus Ave, Box 0840, San Francisco, CA  94143-0840                ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>From twhite@bear.com Thu Sep 12 15:50:28 1996
Return-Path: <twhite@bear.com>
Received: from intfw.bear.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06800; Thu, 12 Sep 1996 15:50:22 -0400
Received: by intfw.bear.com (4.1/SMI-4.1)
	id AA00730; Thu, 12 Sep 96 15:55:38 EDT
Received: from fastbear(165.168.74.3) by intfw via smap (V1.3)
	id sma000227; Thu Sep 12 15:48:21 1996
Received: from ursa2.bear.com by fastbear.bear.com (4.1/SMI-4.1/1.0 AMR 12/15/94)
	id AA28529; Thu, 12 Sep 96 15:51:20 EDT
Received: from whip_xfr.bear.com (whip-xfr) by ursa2.bear.com (4.1/SMI-4.1/AMR+DJMS(2))
	id AA25636; Thu, 12 Sep 96 15:48:59 EDT
Received: from wizard.bsnet by whip_xfr.bear.com (SMI-8.6/SMI-SVR4)
	id PAA03473; Thu, 12 Sep 1996 15:48:32 -0400
Received: from gryphon.bsnet by wizard.bsnet (SMI-8.6/SMI-SVR4)
	id PAA13762; Thu, 12 Sep 1996 15:48:32 -0400
Received: by gryphon.bsnet (SMI-8.6/SMI-SVR4)
	id PAA15280; Thu, 12 Sep 1996 15:48:32 -0400
Date: Thu, 12 Sep 1996 15:48:32 -0400
From: twhite@bear.com (Thomas White)
Message-Id: <199609121948.PAA15280@gryphon.bsnet>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 457

boot from the cdrom - 
mount the root partition
take out the mistake
reboot w/out cdrom

tw

--
*******************************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, offer or
agreement or any information about any transaction, customer account or account
activity contained in this communication.
*******************************************************************************

>From mrs@cadem.mc.xerox.com Thu Sep 12 15:51:57 1996
Return-Path: <mrs@cadem.mc.xerox.com>
Received: from alpha.xerox.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06804; Thu, 12 Sep 1996 15:51:26 -0400
Received: from lurch.cadem.mc.xerox.com ([13.249.32.4]) by alpha.xerox.com with SMTP id <15954(5)>; Thu, 12 Sep 1996 12:56:31 PDT
Received: from maria (maria.cadem.mc.Xerox.COM) by lurch.cadem.mc.xerox.com (4.1/SMI-4.1)
	id AA24410; Thu, 12 Sep 96 15:57:00 EDT
Received: by maria (SMI-8.6/XeroxClient-SVR4-1.3)
	id PAA01168; Thu, 12 Sep 1996 15:55:55 -0400
Date: Thu, 12 Sep 1996 12:55:55 PDT
From: mrs@cadem.mc.xerox.com ("Michael Salehi x22725")
Message-Id: <199609121955.PAA01168@maria>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1222

 >>From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 15:47 EDT 1996
 >>Date: Thu, 12 Sep 1996 11:28:09 PDT
 >>From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
 >>To: sun-managers@ra.mcs.anl.gov
 >>Subject: No Shell for supper user
 >>Mime-Version: 1.0
 >>Content-Transfer-Encoding: 7bit
 >>Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
 >>
 >>Hi al,
 >>
 >>Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
 >>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
 >>give a message "no shell" and kick back to login prompt.  I even try to boot at 
 >>single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
 >>log in as moral user and su to root but it also fail.  Could anyone please help 
 >>me with this.  My teammate is going to hang me soon.
 >>
 >>Thank you 
 >>



Unless, you have a privileged window open, or .rhosts are set such that a remote
host can copy a new password file over, you need to boot -s from cdrom and go
fix it.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike (Mehran) Salehi    mrs@cadem.mc.xerox.com   (716) 422-2725
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

>From gj@qsun.ho.att.com Thu Sep 12 15:54:08 1996
Return-Path: <gj@qsun.ho.att.com>
Received: from cbgw1.att.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06808; Thu, 12 Sep 1996 15:54:01 -0400
Received: from qsun.ho.att.com by cbig1.att.att.com (SMI-8.6/EMS-1.2 sol2)
	id PAA26900; Thu, 12 Sep 1996 15:53:31 -0400
Received: from qsun2.ho.att.com.qsun2 by qsun.ho.att.com (4.1/EMS-1.1.1 SunOS)
	id AA02570; Thu, 12 Sep 96 15:58:59 EDT
Received: by qsun2.ho.att.com.qsun2 (5.x/EMS-1.2 sol2)
	id AA22107; Thu, 12 Sep 1996 15:57:54 -0400
Date: Thu, 12 Sep 1996 15:57:54 -0400
Message-Id: <9609121957.AA22107@qsun2.ho.att.com.qsun2>
From: gj@qsun.ho.att.com (George P Josilo)
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 348

what kind of operating system are you using: Solaris?
if so you can boot of the cdrom in -s mode. the mount
the / dir and edit the /etc/passwd file. this will fix it
the full commands are:

Stop-A
OK boot cdrom -s
#mount /dev/dsk/c0t3d0 /a (generic)
#TERM=sun
#export TERM
#vi /etc/passwd - remove offending feald
#cd /
#umount /a
#reboot

george


>From nsp83273@cae091.ed.ray.com Thu Sep 12 15:54:25 1996
Return-Path: <nsp83273@cae091.ed.ray.com>
Received: from gatekeeper.ray.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id PAA06813; Thu, 12 Sep 1996 15:54:19 -0400
Received: (mailer@localhost) by gatekeeper.ray.com (8.7.5/8.7.3) id PAA10348 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 15:59:20 -0400
Received: from jaguar.nmc.ed.ray.com by gatekeeper.ray.com; Thu Sep 12 15:58:27 1996
Received: from cae091.ed.ray.com.noname by jaguar.nmc.ed.ray.com (4.1/SMI-4.1-DNI)
	id AA03536; Thu, 12 Sep 96 15:58:31 EDT
Received: from cae012.noname by cae091.ed.ray.com.noname (4.1/SMI-4.1)
	id AA06782; Thu, 12 Sep 96 15:57:37 EDT
Date: Thu, 12 Sep 96 15:57:37 EDT
From: nsp83273@cae091.ed.ray.com (Neal Pressman ex 2317)
Message-Id: <9609121957.AA06782@cae091.ed.ray.com.noname>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1983

log in as a normal user ftp to your hostmane as root get /etc/passwd
you can now edit it as normal user make you change and ftp it back. just hope
you dont have root in /etc/ftpusers or you will not be able to do this...

good luck.

                                
                                \\|//
                                (o o)
----------------------------oooO-(_)-Oooo----------------------------
 Neal S. Pressman                        Raytheon Electronic Systems
 System Administrator (MCAD)             528 Boston Post Road
 phone:  (508) 440-2317                  Sudbury, MA  01776
 fax:    (508) 440-2684                  ms 4-1-283
 E-mail:  nsp@cae091.ed.ray.com
____________________________________Oooo.____________________________
                             .oooO  (___)


-> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 15:53:05 1996
-> Return-Path: <sun-managers-relay@ra.mcs.anl.gov>
-> Sender: sun-managers-relay@ra.mcs.anl.gov
-> Date: Thu, 12 Sep 1996 14:28:09 -0400
-> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
-> Reply-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
-> Followup-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
-> To: sun-managers@ra.mcs.anl.gov
-> Subject: No Shell for supper user
-> Mime-Version: 1.0
-> Content-Type-> : -> text/plain-> ; -> charset=US-ASCII-> 
-> Content-Transfer-Encoding: 7bit
-> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
-> Precedence: bulk
-> Content-Length: 474
-> X-Lines: 10
-> 
-> Hi al,
-> 
-> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
-> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
-> give a message "no shell" and kick back to login prompt.  I even try to boot at 
-> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
-> log in as moral user and su to root but it also fail.  Could anyone please help 
-> me with this.  My teammate is going to hang me soon.
-> 
-> Thank you 
-> 

>From gibian@stars1.hanscom.af.mil Thu Sep 12 16:00:20 1996
Return-Path: <gibian@stars1.hanscom.af.mil>
Received: from hpux2.hanscom.af.mil by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06826; Thu, 12 Sep 1996 16:00:16 -0400
Received: from stars1.hanscom.af.mil (stars1.hanscom.af.mil [129.53.46.10]) by hpux2.hanscom.af.mil (8.6.12/8.6.12) with ESMTP id QAA19961 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 16:05:36 -0400
Received: from tfs.com by stars1.hanscom.af.mil (SMI-8.6/SMI-SVR4)
	id QAA10246; Thu, 12 Sep 1996 16:00:36 -0400
Received: from hail.tfs.com by tfs.com (SMI-8.6/SMI-SVR4)
	id QAA21573; Thu, 12 Sep 1996 16:07:11 -0400
Received: by hail.tfs.com (SMI-8.6/SMI-SVR4)
	id QAA15183; Thu, 12 Sep 1996 16:06:47 -0400
Date: Thu, 12 Sep 1996 16:06:47 -0400
From: gibian@stars1.hanscom.af.mil (Marc S. Gibian)
Message-Id: <199609122006.QAA15183@hail.tfs.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: 1T/Vxj/d2EEe+gH2JbHD/A==
Content-Length: 381

boot off media or the network, then fsck and mount the root partition and edit 
the passwd file. You might be stuck using ed, but its still better than having 
to re-install or do a restore (from those backups you are running every night).

-Marc

Marc S. Gibian
Telos Consulting Services     phone: (617) 377-6350
PRISM/TFS                     email: gibian@stars1.hanscom.af.mil

>From iv08480@issc02.mdc.com Thu Sep 12 16:03:45 1996
Return-Path: <iv08480@issc02.mdc.com>
Received: from issc02.mdc.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06830; Thu, 12 Sep 1996 16:03:32 -0400
Received: from WPRT13.MDC.COM by issc02.mdc.com with SMTP
	(1.38.193.4/16.2) id AA22180; Thu, 12 Sep 1996 15:08:19 -0500
Received: by wprt13. (SMI-8.6/SMI-SVR4)
	id PAA01838; Thu, 12 Sep 1996 15:08:52 -0500
Date: Thu, 12 Sep 1996 15:08:52 -0500
From: iv08480@issc02.mdc.com (Colin Melville)
Message-Id: <199609122008.PAA01838@wprt13.>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1495

Bobby,

Been there, done that! Ain't it great!

Boot from CD-ROM single-user mode (boot cdrom -sw).

When it comes up, mount the root device to /a.

cd /a/etc, vi passwd, change root's shell back, reboot.

Colin
%)====================================================%)
%) Colin Melville            | cmelville@mdc.com      %)
%) UNIX Systems Administrator| NTS Technical Services %)
%) UNIX Server Support Team  | http://www.ntstech.com %)
%)                                                    %)
%)   Contracted to: McDonnell Douglas Aircraft Corp.  %)
%)                   http://www.mdc.com               %)
%)====================================================%)


> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 14:33 CDT 1996
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Mime-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From catey@wren.geg.mot.com Thu Sep 12 16:03:58 1996
Return-Path: <catey@wren.geg.mot.com>
Received: from motgate2.mot.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06835; Thu, 12 Sep 1996 16:03:51 -0400
Received: from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate2.mot.com (8.7.3/8.6.10/MOT-3.8) with ESMTP id TAA01801 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 19:47:45 GMT
Received: from motgeg.geg.mot.com (motgeg.geg.mot.com [192.88.158.100]) by pobox.mot.com (8.7.3/8.6.10/MOT-3.8) with SMTP id OAA22124 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 14:50:59 -0500 (CDT)
Received: from wren.geg.mot.com by motgeg.geg.mot.com (AIX 3.2/UCB 5.64/4.03)
          id AA16212; Thu, 12 Sep 1996 12:43:47 -0700
Received: by wren.geg.mot.com (SMI-8.6/SMI-SVR4)
	id MAA28719; Thu, 12 Sep 1996 12:50:51 -0700
Date: Thu, 12 Sep 1996 12:50:51 -0700
From: catey@wren.geg.mot.com (Don Catey)
Message-Id: <199609121950.MAA28719@wren.geg.mot.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for super user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1076

Sounds like you'll have to boot off the CD mini-root.  Under 2.5, booting
from the CD mounts your root disk under /a, so you can open an xterm and
edit /a/etc/passwd and change the shell back.  Also, 2.x recommends that
the "root" user keeps the Bourne shell, if you want ksh or csh, make a 
"kroot" or "croot".

If you are using 4.x, load and boot the mini-root off the cd.  Once you
are up, mkdir /mnt and mount your "/" partition (/dev/sd0a), then
edit /mnt/etc/passwd and make your changes.

Good luck.

--------------------------------------------------------------
Don Catey		Internet:	catey@wren.geg.mot.com
Systems Administrator	Compuserve: 103533.2772@compuserve.com

--------Information Technology Solutions and Support----------

Motorola, Inc.				Voice:	  602/675-2608
Space & Systems 			Fax:	  602/441-7138
    Technology Group
8201 East McDowell Road	      Any views, thoughts, or opinions
M/S H1192		      expressed are my own, and are in
Scottsdale, AZ  85257	      no way those of Motorola, Inc.
--------------------------------------------------------------

>From paul@icx.com Thu Sep 12 16:05:23 1996
Return-Path: <paul@icx.com>
Received: from icx.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06839; Thu, 12 Sep 1996 16:05:08 -0400
Received: by icx.com (/\oo/\ Smail3.1.29.1 #29.2)
	id <m0v1I5c-001s8fC@icx.com>; Thu, 12 Sep 96 13:10 PDT
Received: by icx.com (/\==/\ Smail3.1.28.1 #28.14)
	id <m0v1I5Z-000FVYC@icx.com>; Thu, 12 Sep 96 13:10 PDT
Date: Thu, 12 Sep 1996 12:58:48 -0700 (PDT)
From: Paul Kanz <paul@icx.com>
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.HPP.3.95.960912123537.4339D-100000@pat2.icx.com>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: ZpnWvlGWib4VkrLbJ0rcYg==
Content-Length: 1624


You've done that too?!?  If you're running NIS/NIS+ you're got a chance -
otherwise you might be SOL.

If running NIS/NIS+:

	1.  Log into Master or Slave server
	2.  Add yourself to the group that owns '/sbin' (hoping that /sbin
	    is group writable); push the maps
	3.  Log into workstation with problem, and then copy 'ksh' into
	    '/sbin'.
	4.  Logout; login as root and fix the type-o.
	5.  Go back to NIS server and back out the change.

If not running NIS/NIS+:

	1.  Get six-pack of beer
	2.  Drink six-pack

-Paul

On Thu, 12 Sep 1996, Bobby Huynh wrote:

> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Followup-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

______________________________________________________________________________

Paul Kanz 
System Administrator
Interconnectix, Inc.
10220 SW Nimbus Ave, Building K4
Portland, OR 97223
Email:  paul@icx.com
Phone:  503.684.6641
Fax:    503.639.3469
______________________________________________________________________________


>From Matt.Sherek@seag.fingerhut.com Thu Sep 12 16:10:51 1996
Return-Path: <Matt.Sherek@seag.fingerhut.com>
Received: from dn800e0.fingerhut.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06847; Thu, 12 Sep 1996 16:10:47 -0400
Received: from dn800e0.fingerhut.com (daemon@localhost) by dn800e0.fingerhut.com (8.7.2/8.7.2) with ESMTP id PAA05381 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 15:16:16 -0500 (CDT)
Received: from seag.fingerhut.com (GF007E0.SEAG.fingerhut.com [151.210.140.7]) by dn800e0.fingerhut.com (8.7.2/8.7.2) with SMTP id PAA05377 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 15:16:16 -0500 (CDT)
Received: from g0103.fingerhut.com by seag.fingerhut.com (SMI-8.6/SMI-SVR4)
	id PAA12533; Thu, 12 Sep 1996 15:16:17 -0500
Received: by g0103.fingerhut.com (SMI-8.6/SMI-SVR4)
	id PAA04786; Thu, 12 Sep 1996 15:16:08 -0500
Date: Thu, 12 Sep 1996 15:16:08 -0500
From: Matt.Sherek@seag.fingerhut.com (Matt Sherek)
Message-Id: <199609122016.PAA04786@g0103.fingerhut.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 159


You're either going to have to boot from cdrom or from the network, if you use jumpstart, mount the local drive then blank out the password and reboot.

Matt

>From fierror@roses.rockwell.com Thu Sep 12 16:18:26 1996
Return-Path: <fierror@roses.rockwell.com>
Received: from slopok.roses.rockwell.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06856; Thu, 12 Sep 1996 16:18:18 -0400
Received: by slopok.roses.rockwell.com (5.65/DEC-Ultrix/4.3)
	id AA27362; Thu, 12 Sep 1996 13:23:45 -0700
Date: Thu, 12 Sep 1996 13:23:45 -0700
From: fierror@roses.rockwell.com (Rebecca Fierro)
Message-Id: <9609122023.AA27362@slopok.roses.rockwell.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 296

You will need to boot the system from CD, mount the root partition and 
change the password file.


Becky
--
Rebecca Fierro
ROSES UNIX Systems Staff
Software Engineering and Simulation                   phone:  310/922-1231
Rockwell - Space Systems Division                     COMNET: 372-1231


>From springer@aitsun500.tcinc.com Thu Sep 12 16:19:32 1996
Return-Path: <springer@aitsun500.tcinc.com>
Received: from viper-internal.tcinc.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06861; Thu, 12 Sep 1996 16:19:26 -0400
Received: by viper-internal.tcinc.com; id AA20560; Thu, 12 Sep 96 14:21:58 MDT
Received: from peacock(198.178.8.129) by viper.tcinc.com via smap (V3.1.1)
	id xma020526; Thu, 12 Sep 96 14:21:47 -0600
Received: from aitsun500.tci.com (aitsun500 [165.137.208.132]) by peacock.tcinc.com (8.7.5/8.7.3) with SMTP id OAA05329 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 14:24:21 -0600 (MDT)
Received: by aitsun500.tci.com (SMI-8.6/SMI-SVR4)
	id PAA27681; Thu, 12 Sep 1996 15:24:18 -0500
Date: Thu, 12 Sep 1996 15:24:18 -0500
From: springer@aitsun500.tcinc.com (Jerry Springer)
Message-Id: <199609122024.PAA27681@aitsun500.tci.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1099

you need to boot single user from cdrom, mount the root filesystem 
manually, and then redit the password file correctly.


Jerry Springer			Phone:  (214) 907-4011
TCI/AIT				Fax:    (214) 907-4005
1776 North Greenville Ave.	Email:springer.jerry@tci.com
Richardson,TX 75081		

> From bobby@c2sism1.monmouth.army.mil Thu Sep 12 14:57:39 1996
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Mime-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From john@starinc.com Thu Sep 12 16:27:57 1996
Return-Path: <john@starinc.com>
Received: from starinc.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06866; Thu, 12 Sep 1996 16:27:39 -0400
Received: by starinc.com (SMI-8.6/SMI-SVR4)
	id QAA03471; Thu, 12 Sep 1996 16:32:30 -0400
Date: Thu, 12 Sep 1996 16:32:30 -0400
From: john@starinc.com (John Malick)
Message-Id: <199609122032.QAA03471@starinc.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 831

You have to boot from the Solaris CD and mount the root partition to edit the
passwd and change it to the right path:

Example:

Insert CD

At the OK prompt:

OK boot -sw cdrom


After you see a # sign:

# mount -F ufs /dev/dsk/c0t3d0s0 /a

Replace the disk device with the appropriate target for your boot drive and mount
it to /a or some other dummy directory. Now change directories to /a/etc and
edit vfstab file. Fix the file for root and save the file. Unmount /a.

Next halt or crash the system and boot as normal..

Good Luck

************************************
				   
John Malick - Systems Engineering  
Star Systems Engineering	   
140 Roosevelt Ave.		   
York, PA. 17404			   
				   
(717) 854-5911    Phone		   
(717) 852-9421    Fax		   
john@starinc.com  Email		   
				   
************************************



>From mdoshi@guanine.bchs.uh.edu Thu Sep 12 16:30:36 1996
Return-Path: <mdoshi@guanine.bchs.uh.edu>
Received: from guanine.bchs.uh.edu by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06871; Thu, 12 Sep 1996 16:30:34 -0400
Received: (from mdoshi@localhost) by guanine.bchs.uh.edu (8.7.5/8.7.5) id PAA02126 for bobby@c2sism1.monmouth.army.mil; Thu, 12 Sep 1996 15:35:48 -0500 (CDT)
From: Manish Doshi <mdoshi@guanine.bchs.uh.edu>
Message-Id: <199609122035.PAA02126@guanine.bchs.uh.edu>
Subject: Re: No Shell for supper user
To: bobby@c2sism1.monmouth.army.mil
Date: Thu, 12 Sep 1996 15:35:48 -0500 (CDT)
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil> from "Bobby Huynh" at Sep 12, 96 02:28:09 pm
X-Mailer: ELM [version 2.4 PL24alpha5]
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1337

If u have a CDROM media for the UNIX the boot single user from cdrom.
(at the boot prompt tye b cdrom (fi ur ROM rev. is 2.x) or 
b sd(0,6,2) if ur cd rom is on controller 0 and scsi target is 6.
Then mount the root partition and change the passwd file.


> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 


-- 
"To iterate is human, to recurse is divine." - L. Peter Deutsch

"The only sure thing about luck: it will change!!" - Anonymous

"Who we are never changes. Who we think we are ...does." - Anonymous

Manish Doshi, .............. ___ _/| ..  __ __ ..  ___ _/|  ...........
Dept. of Computer Science    \ x x '    / o O \    \ o O      
University of Houston         ( ^ )      ( ^ )      ( ^ )
Houston, TX 77004 ............. U ........ U ........ ~ ...............

Email :- mdoshi@uh.edu 
         ph: (408)285-6561 (415)967-3445 (Home)
	 URL: http://www.bchs.uh.edu/~mdoshi

>From keith@oz.health.state.mn.us Thu Sep 12 16:34:43 1996
Return-Path: <keith@oz.health.state.mn.us>
Received: from mail.state.mn.us by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06876; Thu, 12 Sep 1996 16:34:32 -0400
Received: from sunny.health.state.mn.us by mail.state.mn.us; Thu, 12 Sep 96 15:39:51 -0500
Received: from mcss (oz) by sunny.health.state.mn.us (4.1/SMI-4.1)
	id AA03047; Thu, 12 Sep 96 15:39:50 CDT
Received: from tinman.mcss by mcss (4.1/SMI-4.1)
	id AA10733; Thu, 12 Sep 96 15:40:36 CDT
Received: by tinman.mcss (5.x/SMI-SVR4)
	id AA09163; Thu, 12 Sep 1996 15:35:10 -0500
Date: Thu, 12 Sep 1996 15:35:10 -0500
From: keith@oz.health.state.mn.us (Keith Willenson)
Message-Id: <9609122035.AA09163@tinman.mcss>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1423


Heheheh! <chuckle>

I assume that root is /dev/dsk/c0t3d0s0 and
that /usr is also on the root partition.
You also might want to make sure that /sbin/ksh
is in /etc/shells

Steps are:
1) boot off cdrom
2) Mount root on /a
3) edit /a/etc/passwd
4) edit /a/etc/shells
5) halt and reboot

ok> boot cdrom -sw
# mount /dev/dsk/c0t3d0s0 /a
cd /a/etc
/a/usr/ucb/vi passwd
/a/usr/ucb/vi shells
halt
ok> boot 


HTH,

K
 
----------------------original message below----------------------
> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 15:18:18 1996
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Reply-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Followup-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Mime-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From A.Chan@CdnAir.CA Thu Sep 12 16:44:14 1996
Return-Path: <alanc@jumbo1.me.CdnAir.CA>
Received: from yvrpo.CdnAir.CA by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06889; Thu, 12 Sep 1996 16:44:07 -0400
Received: by yvrpo.CdnAir.CA id AA32952
  (5.67b/IDA-1.5 for <bobby@c2sism1.monmouth.army.mil>); Thu, 12 Sep 1996 13:47:09 -0700
Received: from jumbo1.me.cdnair.ca(142.147.12.6) by valiant.te.cdnair.ca via smap (V1.3)
	id sma032949; Thu Sep 12 13:46:42 1996
Received: from falcon.cdnair.ca (falcon.me.CdnAir.CA) by jumbo1.me.CdnAir.CA with SMTP id AA29133
  (5.67b/IDA-1.4.4 for <bobby@c2sism1.monmouth.army.mil>); Thu, 12 Sep 1996 13:50:02 -0700
Received: by falcon.cdnair.ca (SMI-8.6/SMI-SVR4)
	id NAA04636; Thu, 12 Sep 1996 13:50:00 -0700
Date: Thu, 12 Sep 1996 13:50:00 -0700
From: A.Chan@CdnAir.CA (Alan Chan)
Message-Id: <199609122050.NAA04636@falcon.cdnair.ca>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1669


Hi Bobby,

	What you need to do now is:
- boot CDROM
- Mount /dev/dsk/c0t3d0s0 (or whatever you / partition is) to a temporary
  mount point say /a
- edit /a/etc/passwd and change the shell back
- reboot

	It is generally not a good idea to change the superuser's shell.
The /sbin/sh is a statically linked shell and is different than /bin/sh or
/bin/ksh, which are dynamically linked.  In the case of a disk crash and
you cannot access library files, the /bin/sh or /bin/ksh will fail.

==============================================================================
Alan Chan				| Phone: 604-279-2900
Canadian Airline International		| Fax:   604-279-2905
System Administrator (Contractor)	| Email: a.chan@cdnair.ca
Alan Chan Consulting Services		| 
==============================================================================

----- Begin Included Message -----

>From sun-managers-relay@ra.mcs.anl.gov  Thu Sep 12 12:03:21 1996
Date: Thu, 12 Sep 1996 14:28:09 -0400
From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
To: sun-managers@ra.mcs.anl.gov
Subject: No Shell for supper user
Content-Transfer-Encoding: 7bit
Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==

Hi al,

Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
give a message "no shell" and kick back to login prompt.  I even try to boot at 
single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
log in as moral user and su to root but it also fail.  Could anyone please help 
me with this.  My teammate is going to hang me soon.

Thank you 


----- End Included Message -----


>From cayz@del-aware.lib.de.us Thu Sep 12 16:45:11 1996
Return-Path: <cayz@del-aware.lib.de.us>
Received: from del-aware.lib.de.us by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06894; Thu, 12 Sep 1996 16:44:59 -0400
Received: from localhost (cayz@localhost) by del-aware.lib.de.us (8.7.5/8.6.11) with SMTP id QAA07760 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 16:50:13 -0400 (EDT)
Date: Thu, 12 Sep 1996 16:50:13 -0400 (EDT)
From: James Cayz <cayz@del-aware.lib.de.us>
X-Sender: cayz@del-aware
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.SOL.3.95.960912163642.7666B-100000@del-aware>
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: B7opGAwYxuUrjWo88Rb1Eg==
Content-Length: 2072

On Thu, 12 Sep 1996, Bobby Huynh wrote:
>Hi al,
>
>Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
>give a message "no shell" and kick back to login prompt.  I even try to boot at 
>single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
>log in as moral user and su to root but it also fail.  Could anyone please help 
>me with this.  My teammate is going to hang me soon.
>
>Thank you 
Bobby,

	I did the exact same thing last month on my solaris 2.5.1 /
Netra box.  Here are the steps as I wrote them down / did them / got
them from my local guru:  I can't promise that my re-telling is
perfect, but here goes....

	"I hope you have the Solaris 2.X CD."  
			(that's supposed to be funny, har har).

	$ df   (to get /'s device name, in this case /dev/dsk/c0t0d0s0 )
/                  (/dev/dsk/c0t0d0s0 ):   96816 blocks   109057 files
/proc              (/proc             ):       0 blocks      884 files
/export            (/dev/dsk/c0t0d0s6 ): 2874900 blocks   815517 files
/tmp               (swap              ):  133280 blocks    11309 files

	$ eject CD (to put the CD in.)

	$ sync;sync;sync (and if you can, shutdown).

	Press STOP A to get an ok> prompt

	ok> boot cdrom  (wait, wait, wait)

	When it finally comes up, you are in single user mode.

	If it asks / starts up any install process, CANCEL!

	Exit openwin, if you are in it.

	# mount /mnt /dev/dsk/c0t0d0s0	(<- or whatever you got above)

	# cd /mnt  (you are now in the / of the hard drive)
	# cd etc
	# vi passwd
	# (fix whatever problems else are left)
	# sync;sync;sync
	# init 6

	You SHOULD BE ok at this point.

	Hope this helps

	James Cayz

+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
[ James Cayz: cayz@lib.de.us  # Voice 302-739-4748 x130 / Fax 302-739-6948 ]
[ Delaware Division of Libraries # 43 S. DuPont Hwy / Dover, DE 19901-7430 ]
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+


>From liaol@edsug.com Thu Sep 12 16:53:22 1996
Return-Path: <liaol@edsug.com>
Received: from mailer.ug.eds.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06909; Thu, 12 Sep 1996 16:53:16 -0400
Received: from cysun006 (cysun006.ug.eds.com)
 by UG.EDS.COM (PMDF V5.0-7 #15834) id <01I9E3HR8YMU000500@UG.EDS.COM>; Thu,
 12 Sep 1996 12:26:15 -0700 (PDT)
Date: Thu, 12 Sep 1996 12:31:22 -0700
From: "Louis C. Liao" <liaol@edsug.com>
Subject: Re: No Shell for supper user
Sender: liaol@edsug.com
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Message-id: <3238650A.39F4@edsug.com>
Organization: EDS Unigraphics Division
X-Mailer: Mozilla 2.01 (X11; I; SunOS 5.5 sun4u)
References: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: LxtLDvbcmb9dpUZbDLTbAg==
Content-Length: 1409

Bobby Huynh wrote:
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it
> give a message "no shell" and kick back to login prompt.  I even try to boot at
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to
> log in as moral user and su to root but it also fail.  Could anyone please help
> me with this.  My teammate is going to hang me soon.
> 
> Thank you

I've done that a couple times.

Basically, you have at least 3 options:
1) boot off CDROM, open a command tool window, mount your root drive
   into some directory (such as /tmp/mnt), and then go vi your passwd
   file.  You may have to get the "vi" binary from your mounted FS.

2) if you used jumpstart, boot your node off the bootserver, then
   perform the same stuff mentioned in 1).

3) If you have NFS mounted home directory, copy /bin/ksh to your 
   NFS home directory on the file server and then chmod it to 4555,
   login to the bad node as yourself, run that copied ksh, (possibly
   needing to do a "su root" afterward), then go ahead and vi your
   /etc/passwd file.

-- 
+--------------------------------------------------+
|   Louis Liao   714-952-6485   liaol@edsug.com    |
|          EDS - Unigraphics, Cypress CA           |
+--------------------------------------------------+

>From tcsab0@svho1ds_1.supervalu.com Thu Sep 12 16:54:40 1996
Return-Path: <internet1!svho1ds_1.supervalu.com!tcsab0@cedar.mr.net>
Received: from cedar.mr.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id QAA06918; Thu, 12 Sep 1996 16:54:39 -0400
Received: (from root@localhost) by cedar.mr.net (8.7.3/8.7.3) id PAA18365 for bobby@c2sism1.monmouth.army.mil; Thu, 12 Sep 1996 15:59:32 -0500 (CDT)
>Received: from svho1ds_1.supervalu.com by supervalu.com (5.x/SMI-SVR4-SV-1.03)
	id AA02665; Thu, 12 Sep 1996 15:58:47 -0500
Received: from internet1 by cedar.mr.net; Thu, 12 Sep 1996 15:59 CDT
Received: from svho1ds_1.supervalu.com by supervalu.com (5.x/SMI-SVR4-SV-1.03)
	id AA02665; Thu, 12 Sep 1996 15:58:47 -0500
Received: from svho1as_17.supervalu.com by svho1ds_1.supervalu.com (SMI-8.6/SMI-SVR4)
	id PAA07864; Thu, 12 Sep 1996 15:54:44 -0500
Received: by svho1as_17.supervalu.com (SMI-8.6/SMI-SVR4)
	id PAA03211; Thu, 12 Sep 1996 15:53:13 -0500
Date: Thu, 12 Sep 1996 15:53:13 -0500
From: tcsab0@svho1ds_1.supervalu.com (Scott Brooks - CSS)
Message-Id: <199609122053.PAA03211@svho1as_17.supervalu.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: 1eemY7Abmw82iMknfNSC2w==
Content-Length: 1896

Bobby,

Get a Solaris O/S CD and do a "boot -s cdrom".  At the unix prompt, mount the drive that contains 
/etc/passwd (i.e. /dev/dsk/c0t3d0s0).  Mount to /a and then cd /a/etc and vi ./passwd file.  Save and 
reboot the system.  Good Luck.


                   ||                    
__________________\__/__________________________________________________________
-----------------O--O-----------------------------------------------------------
               O O  O
     		 0	   	Scott Brooks    
              	  o		Sr. Technical Analyst
              	o		SuperValu
                 		Scott.Brooks@svmail.supervalu.com
            _\\\_ o		(612)828-4216
           /    o\ o
        |\/  |>   >	    _____/\____/\
        |/\______/         /             \
             //       /\__/		  \______	   ____________________
__/\-_____-----______/           		 \________/
           



> From sun-managers-request Thu Sep 12 14:42 CDT 1996
> >Received: from ra.mcs.anl.gov (ra.mcs.anl.gov [140.221.4.26]) by cedar.mr.net (8.7.3/8.7.3) with ESMTP 
id OAA11218 for <sun-managers@svmail.supervalu.com>; Thu, 12 Sep 1996 14:24:56 -0500 (CDT)
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Mime-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 


>From simdro@sisca.qc.ca Thu Sep 12 17:00:21 1996
Return-Path: <simdro@sisca.qc.ca>
Received: from apollo.sisca.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id RAA06926; Thu, 12 Sep 1996 17:00:20 -0400
Received: from odyssee.sisca.qc.ca (gemini.sisca.net [204.19.152.3]) by apollo.sisca.net (8.7.5/8.7.3) with ESMTP id RAA15205 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 17:06:35 -0400 (EDT)
Received: from endeavour.sisca.qc.ca (endeavour.sisca.qc.ca [204.19.153.4]) by odyssee.sisca.qc.ca (8.7.5/8.7.3) with ESMTP id RAA03994 for <bobby@c2sism1.monmouth.army.mil>; Thu, 12 Sep 1996 17:11:58 -0400 (EDT)
From: Simon-Bernard Drolet <simdro@sisca.qc.ca>
Received: (from simdro@localhost) by endeavour.sisca.qc.ca (8.7.5/8.7.3) id RAA03131 for bobby@c2sism1.monmouth.army.mil; Thu, 12 Sep 1996 17:11:56 -0400 (EDT)
Date: Thu, 12 Sep 1996 17:11:56 -0400 (EDT)
Message-Id: <199609122111.RAA03131@endeavour.sisca.qc.ca>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: 3jqvDUXm/a+1tojnXdpmYg==
Content-Length: 487


Hi,

You have no choice but boot from cdrom, mount the / filsystem on /mnt and edit 
the /mnt/etc/passwd file.


Also, beware that root should not use anything other than /sbin/sh as his login
shell because the other shell are not statically linked.

Simon.

--
Simon-Bernard Drolet		E-mail: Simon-Bernard.Drolet@Sisca.qc.ca
Analyste systeme		No.tel:	(819) 564-4003 ext.284
Sisca Inc, Sherbrooke, Quebec	No.fax:	(819) 569-8597
#include <std/disclaimer.h>	/* http://www.sisca.qc.ca */


>From jasonn@nabaus.com.au Thu Sep 12 17:06:12 1996
Return-Path: <jasonn@nabaus.com.au>
Received: from perki0.connect.com.au by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id RAA06931; Thu, 12 Sep 1996 17:06:09 -0400
Received: (from Unabaus@localhost) by perki0.connect.com.au id HAA11479
  (8.7.5/IDA-1.6 for bobby@c2sism1.monmouth.army.mil); Fri, 13 Sep 1996 07:11:27 +1000 (EST)
X-Authentication-Warning: perki0.connect.com.au: Unabaus set sender to jasonn@nabaus.com.au using -f
>Received: from macduff.nabaus.com. by nabaus.com.au (SMI-8.6/SMI-SVR4)
	id HAA29083; Fri, 13 Sep 1996 07:13:06 +1000
Received: from macduff.nabaus.com. by nabaus.com.au (SMI-8.6/SMI-SVR4)
	id HAA29083; Fri, 13 Sep 1996 07:13:06 +1000
Received: from hamlet.nabaus.com. by macduff.nabaus.com. (SMI-8.6/SMI-SVR4)
	id HAA12848; Fri, 13 Sep 1996 07:09:51 +1000
Received: by hamlet.nabaus.com. (SMI-8.6/SMI-SVR4)
	id HAA12758; Fri, 13 Sep 1996 07:09:24 +1000
Date: Fri, 13 Sep 1996 07:09:24 +1000
From: jasonn@nabaus.com.au (Jason Noorman)
Message-Id: <199609122109.HAA12758@hamlet.nabaus.com.>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: JJ2Bn3bFFTIdrgsWmyAD0A==
Content-Length: 125

Try booting off CD then mounting the drive with the /etc/passwd file on /mnt 
then edit the file and reboot.

Thanks Jason.


>From gmp@adc.com Thu Sep 12 17:22:02 1996
Return-Path: <gmp@adc.com>
Received: from ingate.adc.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id RAA06941; Thu, 12 Sep 1996 17:21:50 -0400
Received: by ingate.adc.com (5.65/DEC-Ultrix/4.3)
	id AA15196; Thu, 12 Sep 1996 16:28:03 -0500
Received: from ghandi.YP.sun386i by ohtar (4.1/SMI-4.1)
	id AA13890; Thu, 12 Sep 96 16:28:02 CDT
Received: by ghandi.YP.sun386i (5.x/SMI-SVR4)
	id AA11285; Thu, 12 Sep 1996 16:25:54 -0500
Date: Thu, 12 Sep 1996 16:25:54 -0500
From: gmp@adc.com (Gregory M Polanski)
Message-Id: <9609122125.AA11285@ghandi.YP.sun386i>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: /6m+o4ovROZIRBBnoPpHKw==
Content-Length: 485

Best thing is to boot from distribution CD, almost any version,
mount the hard drive / on /mnt and edit /etc/passwd.

greg
_______________________________________________________________
Greg Polanski                      greg_polanski@adc.com
ADC Telecommunications
MS 254                             612-946-2270
4900 West 78-th St                 612-946-3910 FAX
Bloomington, MN  55435             612-580-6873 Pager
_______________________________________________________________

>From Daniel.Blander@ACSacs.Com Thu Sep 12 17:49:27 1996
Return-Path: <Daniel.Blander@ACSacs.Com>
Received: from sprite by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id RAA06955; Thu, 12 Sep 1996 17:49:22 -0400
Date: Thu, 12 Sep 1996 14:54:41 -0700 (PDT)
From: "Daniel J Blander - Sr. Systems Engineer for ACS" <Daniel.Blander@ACSacs.Com>
X-Sender: phaedrus@ferrari
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.SOL.3.91.960912145253.23643I-100000@ferrari>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: M/fYxrcw8QLpbS0Q6S3Uiw==
Content-Length: 1400


Attach a cdrom, at the "ok" prompt type in "boot -s cdrom", 
"mount /dev/dsk/c0t3d0s0 /a", "cd /a/etc", "TERM=sun-cmd",
"export TERM", "vi passwd", ":wq!", and reboot.....


On Thu, 12 Sep 1996, Bobby Huynh wrote:

> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Daniel Blander 	=8^)	                    
 Sr. Systems Engineer	 Applied Computer Solutions 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Phone: (714) 842.7800		Fax: (714) 842.8299 
 Email: Daniel.Blander@acsacs.com                  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 The Official Applied Computer Solutions Home Page
	     and Tech Tip of the Week:
	       http://www.acsacs.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


>From dhzavatson@ucdavis.edu Thu Sep 12 18:20:36 1996
Return-Path: <dhzavatson@ucdavis.edu>
Received: from pandora.ucdavis.edu by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id SAA06968; Thu, 12 Sep 1996 18:20:34 -0400
Received: from localhost by pandora.ucdavis.edu (8.8.Alpha.8/UCD3.6.2)
	id PAA22979; Thu, 12 Sep 1996 15:25:57 -0700 (PDT)
Date: Thu, 12 Sep 1996 15:25:56 -0700 (PDT)
From: Dave Zavatson <dhzavatson@ucdavis.edu>
X-Sender: dave@pandora.ucdavis.edu
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.GSO.3.95.960912152521.22932B-100000@pandora.ucdavis.edu>
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: A8cbZWm0PpCuoSneRPP9pw==
Content-Length: 587

On Thu, 12 Sep 1996, Bobby Huynh wrote:

> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 

boot of the cdrom.  mount / as /a.  edit /a/etc/passwd

	-Dave


>From sesharao@lsil.com Thu Sep 12 19:20:59 1996
Return-Path: <sesharao@lsil.com>
Received: from lsi.lsil.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id TAA06991; Thu, 12 Sep 1996 19:20:49 -0400
Received: from mhost.lsil.com (mhost.lsil.com [147.145.69.84]) by lsi.lsil.com with SMTP id QAA04046
  (8.6.12/IDA-1.6 for <bobby@c2sism1.monmouth.army.mil>); Thu, 12 Sep 1996 16:26:03 -0700
Received: from asic (asic-n69) by mhost.lsil.com id AA27995
  (4.1/SMI-4.1 for bobby@c2sism1.monmouth.army.mil); Thu, 12 Sep 96 16:25:52 PDT
Received: from dcst35.dc by asic (4.1/SMI-4.1)
	id AA19584; Thu, 12 Sep 96 16:25:51 PDT
Received: by dcst35.dc (SMI-8.6/SMI-SVR4)
	id QAA03662; Thu, 12 Sep 1996 16:25:45 -0700
Date: Thu, 12 Sep 1996 16:25:45 -0700
From: sesharao@lsil.com (Sesharao Patchipala)
Message-Id: <199609122325.QAA03662@dcst35.dc>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: ZS76kxHSjSYOwujjWPcRzg==
Content-Length: 1125

Use ftp to get the passwd file, correct it, and ftp as root to that system
and put the password file back.  ftp does not require a shell.


> From ra.mcs.anl.gov!sun-managers-relay@mhbs.lsil.com Thu Sep 12 15:36:28 1996
> X-From: Umail1 Thu Sep 12 12:47 PDT 1996
> >Received: from ra.mcs.anl.gov (ra.mcs.anl.gov [140.221.4.26]) by 
mail1.lsil.com with ESMTP id MAA29663
  (8.6.12/IDA-1.6); Thu, 12 Sep 1996 12:41:28 -0700
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot 
at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please 
help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 

>From sweh@mpn.com Thu Sep 12 20:18:22 1996
Return-Path: <sweh@mpn.com>
Received: from nebula.mpn.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id UAA07019; Thu, 12 Sep 1996 20:18:21 -0400
Received: from mercury.mpn.com by nebula.mpn.com (5.x/SMI-SVR4)
	id AA14407; Fri, 13 Sep 1996 01:23:43 +0100
From: sweh@mpn.com (Stephen Harris)
Received: by mercury.mpn.com (5.x/Spike-2.0/sweh-1.0)
	id AA18231; Fri, 13 Sep 1996 01:23:41 +0100
Message-Id: <9609130023.AA18231@mercury.mpn.com>
Subject: Re: No Shell for supper user
To: bobby@c2sism1.monmouth.army.mil
Date: Fri, 13 Sep 1996 01:23:41 +0100 (BST)
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil> from "Bobby Huynh" at Sep 12, 96 02:28:09 pm
X-Mailer: ELM [version 2.4 PL24]
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: 0Golh34a90zoDHG+wqJ42w==
Content-Length: 274

> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.

Boot single user from CD ("boot cdrom -s"), mount root, fix the error.
Shoot self in head for perform imbecile mistake.


rgds
Stephen

>From sckhoo@asiapac.net Thu Sep 12 20:42:39 1996
Return-Path: <sckhoo@asiapac.net>
Received: from gandalf.asiapac.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id UAA07029; Thu, 12 Sep 1996 20:42:32 -0400
Received: from klj-7-57.tm.net.my (klj-7-57.tm.net.my [202.188.7.57]) by gandalf.asiapac.net (8.6.12/8.6.12) with SMTP id IAA17901 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 08:30:18 +0800
Date: Fri, 13 Sep 1996 08:30:18 +0800
Message-Id: <199609130030.IAA17901@gandalf.asiapac.net>
X-Sender: sckhoo@mail.asiapac.net
X-Mailer: Windows Eudora Light Version 1.5.2
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
From: Swee-Chuan Khoo <sckhoo@asiapac.net>
Subject: Re: No Shell for supper user
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: ZbQcINLjMgdU4VIq/MTQQg==
Content-Length: 1073

At 02:28 PM 9/12/96 -0400, you wrote:
>Hi al,
>
>Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
>give a message "no shell" and kick back to login prompt.  I even try to
boot at 
>single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
>log in as moral user and su to root but it also fail.  Could anyone please
help 
>me with this.  My teammate is going to hang me soon.
>
>Thank you 
>
>

bootup from cdrom, mount the root partition and change the /etc/passwd file.

easy. :)

+-----------------------------------------------------------------------+
| Khoo Swee Chuan ( The Network Connections ) - system administrator    |
| http://www.asiapac.net/~sckhoo/  	sckhoo@asiapac.net	        |
| tel:603-7337757  fax:603-7345577    #include <std.disclaimer>	        |
+-----------------------------------------------------------------------+
"if you eliminate the impossible, whatever remains - however improbable 
- must be the truth."



>From rmills@atl1.america.net Thu Sep 12 21:20:22 1996
Return-Path: <rmills@atl1.america.net>
Received: from atl1.america.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id VAA07046; Thu, 12 Sep 1996 21:20:17 -0400
Received: (from rmills@localhost) by atl1.america.net (8.7.5/8.7.3) id VAA11727 for bobby@c2sism1.monmouth.army.mil; Thu, 12 Sep 1996 21:25:14 -0400 (EDT)
From: "Richard C. Mills" <rmills@atl1.america.net>
Message-Id: <199609130125.VAA11727@atl1.america.net>
Subject: Re: No Shell for supper user
To: bobby@c2sism1.monmouth.army.mil
Date: Thu, 12 Sep 1996 21:25:13 -0400 (EDT)
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil> from "Bobby Huynh" at Sep 12, 96 02:28:09 pm
X-Mailer: ELM [version 2.4 PL24]
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 300

Hello,

Boot off of CD.  Then mount the root direcotery and make the necessary
changes.

Good Luck!

Rich
-- 
------------------------------------------------------------------------------
Richard Mills - rmills@fair.net
------------------------------------------------------------------------------

>From jakem@apex.com Thu Sep 12 21:29:32 1996
Return-Path: <jakem@apex.com>
Received: from nwnexus.wa.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id VAA07052; Thu, 12 Sep 1996 21:29:22 -0400
Received: from apex.com by nwnexus.wa.com with SMTP id AA27291
  (5.65c/IDA-1.4.4 for <bobby@c2sism1.monmouth.army.mil>); Thu, 12 Sep 1996 18:34:09 -0700
Received: from ichy.corp by apex.com (4.1/SMI-4.1)
	id AA17019; Thu, 12 Sep 96 12:55:49 PDT
Date: Thu, 12 Sep 96 12:55:49 PDT
From: jakem@apex.com (Jake Mahon)
Message-Id: <9609121955.AA17019@apex.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re:  No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 764

| From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 12:44:04 1996
| Reply-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
| Subject: No Shell for supper user
 
| Somehow I edit /etc/passwd to change current setting shell to ksh for root. I 
| missed typing /sbin/ksh instead of /bin/ksh. as soon as I log in as "root" it 
| give a message "no shell" and kick back to login prompt.I even try to boot at 
| single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
| log in as moral user and su to root but it also fail.Could anyone please help 
| me with this.  My teammate is going to hang me soon.

1. boot the machine from cdrom
2. mount the /etc partition by hand
3. repair your password file
4. reboot

I did this, too!   jakem@apex.com

>From Christian.Masopust@tmn.sie.siemens.at Fri Sep 13 00:44:54 1996
Return-Path: <Christian.Masopust@tmn.sie.siemens.at>
Received: from zwei.siemens.at by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id AAA07175; Fri, 13 Sep 1996 00:44:49 -0400
Received: from rdserv.sie.siemens.co.at (root@firix [10.1.143.100]) by zwei.siemens.at (8.7.4/8.7.3) with ESMTP id GAA09986 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 06:49:34 +0200 (MET DST)
Received: from tmn.sie.siemens.at (sunserv.tmn.sie.siemens.at [195.1.138.251]) by rdserv.sie.siemens.co.at (8.7/8.7) with SMTP id GAA25145 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 06:45:18 +0200 (MESZ)
Received: by tmn.sie.siemens.at (5.x/SMI-SVR4)
	id AA08120; Fri, 13 Sep 1996 06:48:00 +0200
Date: Fri, 13 Sep 1996 06:48:00 +0200
From: Christian.Masopust@tmn.sie.siemens.at (Christian Masopust)
Message-Id: <9609130448.AA08120@tmn.sie.siemens.at>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1196

> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

Hi Bobby,

no reason to hang ....

you only have to boot from the install-cd, start a cmdtool when openwin is up,
mount your root-filesystem to /a (it's on your cd and it's made for mounting
the root-filesystem...) and than you can change the login-shell back to
/sbin/sh (don't use any other shell!!! they all are dynamically linked and so
there is no guaranty that the can work in single user mode !!!)

regards
Christian

--
  Christian Masopust                               |    _    |
  Siemens AG Austria                              _|___/v\___|_ 
  Christian.Masopust@siemens.at              -====(~)=(.*.)=(~)====-
  Phone/Fax: +43-1-1707-24516 / 53759                  `-'           

>From dsf@Interpath.com Fri Sep 13 01:34:24 1996
Return-Path: <dsf@interpath.com>
Received: from mail-hub.interpath.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id BAA07189; Fri, 13 Sep 1996 01:34:22 -0400
Received: from LOCALNAME (raleigh-046.interpath.net [207.59.1.46]) by mail-hub.interpath.net (8.6.12/8.6.14) with SMTP id BAA27820 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 01:38:17 -0400
Date: Fri, 13 Sep 1996 01:38:17 -0400
Message-Id: <199609130538.BAA27820@mail-hub.interpath.net>
X-Sender: dsf@interpath.com
X-Mailer: Windows Eudora Light Version 1.5.2
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
From: dsf@Interpath.com
Subject: Re: No Shell for supper user
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: yL/jEHNFba3dKmjk3Aqy0w==
Content-Length: 1051

At 02:28 PM 9/12/96 -0400, you wrote:
>Hi al,
>
>Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
>give a message "no shell" and kick back to login prompt.  I even try to
boot at 
>single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
>log in as moral user and su to root but it also fail.  Could anyone please
help 
>me with this.  My teammate is going to hang me soon.
>
>Thank you 
>
>
I think you might need to boot from the distribution CD-ROM.  Select the
shell option instead of the OS install.  Once you are at a prompt you should
probably fsck your raw boot disk.  Next, I think you need to mount your boot
disk onto the cd-rom filesystem (called the mini-root I think).  You can
then "cd" down into your boot disk and edit the "passwd" file.  Unmount the
boot disk and reboot.  I'm not sure I have all the details exactly right, so
take my suggestions and combine with others.  Good Luck.

Dan Freedman


>From diarra@ipno.in2p3.fr Fri Sep 13 03:39:59 1996
Return-Path: <diarra@ipno.in2p3.fr>
Received: from ipnosb.in2p3.fr by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id DAA07229; Fri, 13 Sep 1996 03:39:44 -0400
Received: from ipnsub.in2p3.fr (ipnsub [134.158.92.55]) by ipnosb.in2p3.fr (8.7.3/8.7.3) with ESMTP id JAA13111 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 09:44:56 +0200 (MET DST)
Received: (from diarra@localhost) by ipnsub.in2p3.fr (8.7.3/8.7.3) id JAA22141; Fri, 13 Sep 1996 09:41:42 +0200 (MET DST)
Date: Fri, 13 Sep 1996 09:41:41 +0200 (MET DST)
From: Christophe DIARRA <diarra@ipno.in2p3.fr>
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.SOL.3.91.960913093026.20966A-100000@ipnsub>
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: nw9ALbmyQ3H1nfTciRB4uw==
Content-Length: 910

Hello,

if you have a user in the sysadmin group (group 14) then login
as this user and start admintool to modify the root's shell.

If you don't have a user in the sysadmin group, boot from the CD-ROM, mount
your system disk and edit /etc/passwd.

Christophe.

***
Christophe DIARRA
I.P.N ORSAY
91406 ORSAY Cedex
Tel: (16 1) 69 41 65 60
E-mail: diarra@ipno.in2p3.fr
***

On Thu, 12 Sep 1996, Bobby Huynh wrote:

> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From uvaghela@mpc-uk.com Fri Sep 13 04:13:03 1996
Return-Path: <uvaghela@mpc-uk.com>
Received: from one2one.mpc-uk.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id EAA07246; Fri, 13 Sep 1996 04:13:00 -0400
Received: from alcatraz.mpc-uk.com (mailhost.mpc-uk.com) by one2one.mpc-uk.com (5.0/one2one-1.9)
	id AA29928; Fri, 13 Sep 1996 09:13:57 +0100
Received: from virgin.mpc-uk.com by alcatraz.mpc-uk.com (5.0/one2one-1.9)
	id AA11526; Fri, 13 Sep 1996 09:19:17 +0100
Received: by virgin.mpc-uk.com (SMI-8.6/one2one-1.9)
	id JAA11366; Fri, 13 Sep 1996 09:19:30 +0100
Date: Fri, 13 Sep 1996 09:19:30 +0100
From: uvaghela@mpc-uk.com (Umesh Vaghela)
Message-Id: <199609130819.JAA11366@virgin>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1804


Hi,

There are two options you can use:

1) Boot from CD-ROM and mount your system disk onto /mnt and edit the
   file /mnt/etc/passwd which is your system passwd file and reboot from
   the system disk, OR

2) make a copy of the original passwd file as an ordinary user and then
   via ftp replace the original passwd file with a minimal passwd file
   with root passwd entry blank. Now  you'll be login as root without passwd,
   fix the original copy of the passwd file that you had saved and put it
   back in /etc directory.

I hope this helps.

--
-----------------------------------------------------------------------
Umesh Vaghela                         E-mail: umesh.vaghela@mpc-uk.com
Senior Unix Systems Analyst              Tel: +44 181 214 3357
Network Services                         Fax: +44 181 214 2278
One-2-One / Mercury
Elstree Tower, Elstree Way, Borehamwood, Herts., WD6 1DT, UK.
-----------------------------------------------------------------------

> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 20:26 BST 1996
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Mime-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From john.p.avery@tva.gov Fri Sep 13 08:06:18 1996
Return-Path: <X7NX2@tva.gov>
Received: from info.tva.gov by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id IAA07393; Fri, 13 Sep 1996 08:06:12 -0400
Received: from topaz.cha.tva.gov by info.tva.gov (SMI-8.6/TVA-info.960408)
	id IAA26848; Fri, 13 Sep 1996 08:11:48 -0400
Received: (from oracle@localhost) by topaz.cha.tva.gov (8.7.5/8.7.3/tva.topaz) id IAA15851 for bobby@c2sism1.monmouth.army.mil; Fri, 13 Sep 1996 08:11:31 -0400 (EDT)
Date: Fri, 13 Sep 1996 08:11:31 -0400 (EDT)
Message-Id: <199609131211.IAA15851@topaz.cha.tva.gov>
From: "X7NX2.TVA.GOV(John Avery)" <john.p.avery@tva.gov>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
X-Orcl-Application: In-Reply-To: SMTP.TVA.GOV:sun-managers-relay@ra.mcs.anl.gov's message of 12-Sep-96 14:28
Status: UO
Mime-Version: 1.0
Content-Type: multipart/mixed;boundary=4b7c_729f-5b6_7101-dda_4293
Content-Length: 1040


--4b7c_729f-5b6_7101-dda_4293
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: 7Smn/u9qkdVmFUD7edVMBw==

Bobby, 
 
Been their done that.  Boot from CD.  Exit before disk is partitioned.  Mount 
/dev/dsk/c0t?d0s0 to /a and edit the passwd file.  Then reboot. 
 
 
John Avery 
ph 751-2513 
pgr 10834 
send internet mail to: 
x7nx2@tva.gov 
FAX: (615) 751-8930


--4b7c_729f-5b6_7101-dda_4293
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-MD5: +F/F8kDfF8/0w7ePpiMErg==


Hi al,

Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
give a message "no shell" and kick back to login prompt.  I even try to boot at 
single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
log in as moral user and su to root but it also fail.  Could anyone please help 
me with this.  My teammate is going to hang me soon.

Thank you 



--4b7c_729f-5b6_7101-dda_4293--

>From kstype@bani.com Fri Sep 13 08:13:19 1996
Return-Path: <kstype@bani.com>
Received: from m.bani.COM by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id IAA07402; Fri, 13 Sep 1996 08:13:18 -0400
Received: from bani.com (banigw2.bani.COM [192.204.32.210]) by m.bani.COM (8.7.1/8.7.1) with ESMTP id IAA11078 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 08:40:40 -0400 (EDT)
Received: from neon.bani.com (neon [204.170.162.145]) by bani.com (8.7.1/8.7.1) with SMTP id IAA12888 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 08:16:47 -0400 (EDT)
Message-ID: <32394FD8.C46@bani.com>
Date: Fri, 13 Sep 1996 08:13:12 -0400
From: Kurt Stype <kstype@bani.com>
Reply-To: kstype@bani.com
Organization: Bell Atlantic Network Integration
X-Mailer: Mozilla 3.0 (Win95; I)
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
References: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: RLQbl4pI87gwY7skNBgyRg==
Content-Length: 1263

Bobby Huynh wrote:
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it
> give a message "no shell" and kick back to login prompt.  I even try to boot at
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to
> log in as moral user and su to root but it also fail.  Could anyone please help
> me with this.  My teammate is going to hang me soon.
> 
> Thank you

You will need to boot from cdrom in single user mode:

	ok> boot cdrom -s

and once it reboots, fsck and mount the root partition from the
harddrive to your  /a partition on the crom drive:

	# fsck /dev/rdsk/c0t3d0s0
	  fsck runs.......FYI, your device may not be target 3 (t3) it 	  could
be target 0 (t0).

	# mount /dev/dsk/c0t3d0s0 /a
	  it mounts......(hopefully)

then simply cd to the /etc directory on the harddrive:

	# cd /a/etc

and vi the /etc/password file and correct the shell path.


This should do it, just reboot at this point and you should be able to
login as root.

Kurt Stype
Administrator, WEB Services
Bell Atlantic Network Integration
52 East Swedesford Road
Frazer, PA 19355

Email: kstype@bani.com
WWW:  http://www.bani.com

>From seanm@sybase.com Fri Sep 13 08:54:40 1996
Return-Path: <seanm@sybase.com>
Received: from halon.sybase.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id IAA07426; Fri, 13 Sep 1996 08:54:34 -0400
Received: from smtp1.sybase.com (sybgate) by halon.sybase.com (5.x/SMI-SVR4/SybFW4.0)
	id AA24730; Thu, 12 Sep 1996 15:20:37 -0700
Received: from moxie.sybase.com by smtp1.sybase.com (4.1/SMI-4.1/SybH3.5-030896)
	id AA03187; Thu, 12 Sep 96 15:18:56 PDT
Received: by moxie.sybase.com (5.x/SMI-SVR4/SybEC3.5)
	id AA12290; Thu, 12 Sep 1996 18:19:05 -0400
Date: Thu, 12 Sep 1996 18:19:05 -0400
From: seanm@sybase.com (Sean McInerney)
Message-Id: <9609122219.AA12290@moxie.sybase.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 638

 
 Boot from cdrom and mount the root on /a.  vi from there.  Reboot.

> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 15:11 EDT 1996
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From js@cctechnol.com Fri Sep 13 08:59:11 1996
Return-Path: <js@cctechnol.com>
Received: from kraken.cctechnol.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id IAA07431; Fri, 13 Sep 1996 08:59:01 -0400
Received: by kraken.cctechnol.com (Smail3.1.28.1 #3)
	id m0v1JM1-0008qcC; Thu, 12 Sep 96 16:31 CDT
Message-Id: <m0v1JM1-0008qcC@kraken.cctechnol.com>
Date: Thu, 12 Sep 96 16:31 CDT
To: bobby@c2sism1.monmouth.army.mil
In-reply-to: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
	(bobby@c2sism1.monmouth.army.mil)
Subject: Re: No Shell for supper user
Reply-to: js@cctechnol.com
From: js@cctechnol.com (Johnie Stafford)
X-URL: http://www.cctechnol.com/~js
X-Sender: js@kraken
Organization: C & C Technologies, Inc., Lafayette, LA
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1139

>>> On Thu, 12 Sep 1996 14:28:09 -0400, bobby@c2sism1.monmouth.army.mil (Bobby Huynh) said:

 bh> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
 bh> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
 bh> give a message "no shell" and kick back to login prompt.  I even try to boot at 
 bh> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
 bh> log in as moral user and su to root but it also fail.  Could anyone please help 
 bh> me with this.  My teammate is going to hang me soon.

Still got that install CD? 'boot -s cdrom'. Then mount the root
partition on /mnt and edit /mnt/etc/passwd.


	Johnie

==============================================================================
 Johnie Stafford, System Administrator     *  Phone: (318) 261-0660
 C & C Technologies, Inc.                  *    Fax: (318) 261-0192
 730 East Kaliste Saloom Rd                * E-mail: js@cctechnol.com
 Lafayette, LA  70508                      *    URL: http://www.cctechnol.com
==============================================================================

>From donf@brother.com Fri Sep 13 09:01:43 1996
Return-Path: <donf@brother.com>
Received: from brother.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id JAA07443; Fri, 13 Sep 1996 09:01:36 -0400
Received: from brother.com by brother.com (SMI-8.6/SMI-SVR4)
	id QAA01971; Thu, 12 Sep 1996 16:17:21 -0400
Received: from brother.com by brother.com (4.1/SMI-4.1)
	id AA16039; Thu, 12 Sep 96 15:19:03 CDT
Date: Thu, 12 Sep 96 15:19:03 CDT
From: donf@brother.com (DON FREELEY)
Message-Id: <9609122019.AA16039@brother.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1248

I did this myself once. Not that I'll admit it in public though
what you need to do boot from the cd to single user then mount the root
partition on a temp dir then go edit the file.

> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 14:10:47 1996
> Sender: sun-managers-relay@ra.mcs.anl.gov
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Reply-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Followup-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Mime-Version: 1.0
> Content-Type> : > text/plain> ; > charset=US-ASCII> 
> Content-Transfer-Encoding: 7bit
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> Content-Length: 474
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From kwong@solar.acast.nova.edu Fri Sep 13 09:30:29 1996
Return-Path: <kwong@solar.acast.nova.edu>
Received: from solar.acast.nova.edu by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id JAA07458; Fri, 13 Sep 1996 09:30:27 -0400
Received: by solar.acast.nova.edu (SMI-8.6/SMI-SVR4)
	id JAA14252; Fri, 13 Sep 1996 09:34:42 -0400
From: kwong@solar.acast.nova.edu (James Kwong)
Message-Id: <199609131334.JAA14252@solar.acast.nova.edu>
Subject: Re: No Shell for supper user
To: bobby@c2sism1.monmouth.army.mil
Date: Fri, 13 Sep 1996 09:34:40 -0400 (EDT)
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil> from "Bobby Huynh" at Sep 12, 96 02:28:09 pm
X-Mailer: ELM [version 2.4 PL23]
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: 17JHPnwd1fx4aPapHnX5zA==
Content-Length: 621


You can try ftp to your machine, login as root, and upload a corrected 
password file to /etc.

Hope this helps,
-James.

> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 


>From kowen@aip.org Fri Sep 13 09:39:48 1996
Return-Path: <kowen@aip.org>
Received: from aip.org by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id JAA07468; Fri, 13 Sep 1996 09:39:37 -0400
Received: by nirvana (SMI-8.6/SMI-SVR4)
	id OAA15082; Thu, 12 Sep 1996 14:56:56 -0400
Date: Thu, 12 Sep 1996 14:56:56 -0400
From: kowen@aip.org (Kenn Owen)
Message-Id: <199609121856.OAA15082@nirvana>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 459


The easiest way to fix this is to boot off of the cd-rom and as soon as the 
install screen comes up to right click on the workspace and open a console
window.  Then mount the disk with the regular /etc to /mnt and vi the
passwd file back to the proper shell and save it.  Then type reboot in the 
console window and login as root when the login prompt comes up.

Kenn Owen
Systems Administrator				kowen@aip.org
American Institute of Physics			516-576-2238

>From MHILL@graver.com Fri Sep 13 10:08:19 1996
Return-Path: <MHILL@graver.com>
Received: from relay3.smtp.psi.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id KAA07494; Fri, 13 Sep 1996 10:08:06 -0400
Received: from mailhost.graver.com by relay3.smtp.psi.net (8.7.5/SMI-5.4-PSI)
	id KAA05680; Fri, 13 Sep 1996 10:12:56 -0400 (EDT)
Received: from S1/SpoolDir by mailhost.graver.com (Mercury 1.21);
    13 Sep 96 10:16:03 -0400
Received: from SpoolDir by S1 (Mercury 1.21); 13 Sep 96 10:15:35 -0400
From: "Matt Hill" <MHILL@graver.com>
Organization: The Graver Company
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
Date: Fri, 13 Sep 1996 10:09:11 EST
Subject: Re: No Shell for supper user
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <CFD31E6CAD@mailhost.graver.com>
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: uGFHV8WIIBLXLMUyekhb1g==
Content-Length: 1327

no way around this.  unless you have some sort of 'back door' to root 
access (like a suid root shell lying around or something) then your 
system is hosed.  what you need to do is boot the system some other 
way, such as from the install CD, and then mount your hard drive onto 
/mnt or something, then go in and vi the passwd file to correct it.

if you're running sunos 5.x, then the cd that comes with it is very 
nice to do this.  just put it in the drive, halt the system, do 'boot 
cdrom' at the ok prompt, and away you go.

> Date:          Thu, 12 Sep 1996 14:28:09 -0400
> From:          bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Reply-to:      bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To:            sun-managers@ra.mcs.anl.gov
> Subject:       No Shell for supper user

> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 
--
Matthew J. Hill
hill@graver.com

>From mark@dbs-mia.com Fri Sep 13 10:23:19 1996
Return-Path: <mark@dbs-mia.com>
Received: from fosters.dbs-mia.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id KAA07504; Fri, 13 Sep 1996 10:23:17 -0400
Received: by fosters.dbs-mia.com with Microsoft Exchange (IMC 4.0.837.3)
	id <01BBA15F.E6544CB0@fosters.dbs-mia.com>; Fri, 13 Sep 1996 10:39:54 -0400
Message-ID: <c=US%a=_%p=Digital_Business%l=FOSTERS-960913143949Z-143@fosters.dbs-mia.com>
From: Mark Sherman <mark@dbs-mia.com>
To: "'bobby@c2sism1.monmouth.army.mil'" <bobby@c2sism1.monmouth.army.mil>
Subject: RE: No Shell for supper user
Date: Fri, 13 Sep 1996 10:39:49 -0400
Return-Receipt-To: <mark@dbs-mia.com>
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: 3l11FYiKQh4UEQUAhIxLyA==
Content-Length: 946

Try booting single user mode from the cdrom. Then mount the root
directory (/dev/dsk/cxtxdxsx) and edit the /etc/passwd file to reflect
the correct shell for root. Reboot. 

Mark Sherman
Systems Engineer
Digital Business Systems
mark@dbs-mia.com

>----------
>From:
>	bobby@c2sism1.monmouth.army.mil[SMTP:bobby@c2sism1.monmouth.army.mil]
>Sent: 	Thursday, September 12, 1996 2:28 PM
>To: 	sun-managers@ra.mcs.anl.gov
>Subject: 	No Shell for supper user
>
>Hi al,
>
>Somehow I edit /etc/passwd to change current setting shell to ksh for
>root.  I 
>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as
>"root" it 
>give a message "no shell" and kick back to login prompt.  I even try to
>boot at 
>single user (ok> boot -s or boot -S).  It give me a same error.  I did
>try to 
>log in as moral user and su to root but it also fail.  Could anyone
>please help 
>me with this.  My teammate is going to hang me soon.
>
>Thank you 
>

>From gokhan@gantek.com.tr Fri Sep 13 11:04:42 1996
Return-Path: <gokhan@gantek.com.tr>
Received: from jaguar by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id LAA07565; Fri, 13 Sep 1996 11:02:12 -0400
Received: by jaguar (SMI-8.6/SMI-SVR4)
	id RAA07546; Fri, 13 Sep 1996 17:56:32 +0300
Date: Fri, 13 Sep 1996 17:56:32 +0300
From: gokhan@gantek.com.tr (Gokhan ERDEM)
Message-Id: <199609131456.RAA07546@jaguar>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: jTNHDrijkEhLhEDa6WdoTg==
Content-Length: 227

You have to boot from Solaris CD.
1- boot cdrom -s
2- #TERM=sun
3- #export TERM
4- #mount /dev/dsk/c0t3d0s0 /a    'mount root partition'
5- #vi /mnt/etc/passwd
6- Change /sbin/ksh to /bin/sh
7- reboot the machine

Gokhan ERDEM

>From GOBBERS@artus.faw.uni-ulm.de Fri Sep 13 11:38:16 1996
Return-Path: <<@listserv.gmd.de:GOBBERS@ARTUS.FAW.UNI-ULM.DE>>
Received: from listserv.gmd.de by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id LAA07580; Fri, 13 Sep 1996 11:38:06 -0400
Message-Id: <199609131538.LAA07580@c2sism1.monmouth.army.mil>
Received: from vm.gmd.de by listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <2.AD525462@listserv.gmd.de>; Fri, 13 Sep 1996 9:16:14 +0200
Received: from ARTUS.FAW.UNI-ULM.DE (NJE origin MAILER@DULFAW1A) by VM.GMD.DE
          (LMail V1.2b/1.8b) with BSMTP id 2174; Fri, 13 Sep 1996 09:16:13 +0200
Received: from artus.faw.uni-ulm.de (NJE origin GOBBERS@DULFAW1A) by
          ARTUS.FAW.UNI-ULM.DE (LMail V1.2a/1.8a) with BSMTP id 2619; Fri, 13
          Sep 1996 09:16:36 +0000
Date: Fri, 13 Sep 96 09:16:08 MEZ
From: Dieter Gobbers <GOBBERS@artus.faw.uni-ulm.de>
Organization: Research Institute for Applied Knowledge Processing at the U. Ulm
Subject: Re: No Shell for supper user
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
In-Reply-To: Your message of Thu, 12 Sep 1996 14:28:09 -0400
Status: UO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 59

Try to replace the passwd file via ftp.

Greetings, Dieter

>From cherub@lava.net Fri Sep 13 13:51:55 1996
Return-Path: <cherub@lava.net>
Received: from malasada.lava.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id NAA07661; Fri, 13 Sep 1996 13:51:45 -0400
Received: from ohia014.lava.net [204.151.144.54] by malasada.lava.net with smtp
	(Smail3.1.28.1 #9) id m0v1cU6-000AKVC; Fri, 13 Sep 96 07:56 WET
Date: Fri, 13 Sep 96 07:56 WET
Message-Id: <1.5.4.16.19960913073654.2847bdd8@lava.net>
X-Sender: cherub@lava.net
X-Mailer: Windows Eudora Light Version 1.5.4 (16)
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
From: AO <cherub@lava.net>
Subject: Re: No Shell for supper user
Status: UO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: t+PmZFyogZnPfc4i/7sxPQ==
Content-Length: 1060

Bobby;

        If you have a System CDROM you are in luck.

a. Insert your CDROM.

        From the OK prompt (Stop-A prompt)
b. type : boot CDROM -s

        this will bring your system up into single user mode from your
CDROM.  No password requried.

c. Now type:  mount /dev/dsk/c0t3d0s0 /a

        This will mount your hard disk root partition.

d. type cd /a/etc

        this will place you into your harddisk etc directory

e. Edit your passwd file with vi and reboot your system from your harddisk.



  At 02:28 PM 9/12/96 -0400, you wrote:
>Hi al,
>
>Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
>give a message "no shell" and kick back to login prompt.  I even try to
boot at 
>single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
>log in as moral user and su to root but it also fail.  Could anyone please
help 
>me with this.  My teammate is going to hang me soon.
>
>Thank you 
>
>

EFN, CIAO!, Angel


>From matthew.stier@imonics.com Fri Sep 13 14:30:47 1996
Return-Path: <matthew@imonics.com>
Received: from laptev.imonics.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id OAA07677; Fri, 13 Sep 1996 14:30:42 -0400
Received: from mage.imonics.com (mage [205.139.208.41]) by laptev.imonics.com (8.7.3/8.7.3) with SMTP id OAA19069 for <bobby@c2sism1.monmouth.army.mil>; Fri, 13 Sep 1996 14:36:05 -0400 (EDT)
From: Matthew Stier - BSG Corporation <matthew.stier@imonics.com>
Received: by mage.imonics.com (5.x/SMI-SVR4)
	id AA01128; Fri, 13 Sep 1996 14:36:04 -0400
Date: Fri, 13 Sep 1996 14:36:04 -0400
Message-Id: <9609131836.AA01128@mage.imonics.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1710


Boot off CDROM, or over the network, (ie: jumpstart, but don't actually install
a new OS) and mount the root partition and edit /etc/passwd.

Note: I personally consider changing the default shell from /sbin/sh to any
      thing else, an act of stupidity.  Root is given /sbin/sh as the default
      shell for a reason.  It is the only "STATICALLY" linked shell on the
      system, and is not dependent upon /usr.  Good luck trying to recover on
      a major crash.

Note: You may run into a shell behavior difference switching shells, which
      may introduce nuances you don't expect.

Question?  What is the matter with spawning your favorite shell once you 
      assume root.  I do it all the time.

--
Matthew.Stier@imonics.com         |
Unix Systems Administrator        |
BSG Corporation                   |       "Wisconsin Escapee"
Cary, NC 27511, (919) 461-6000    |

> From sun-managers-relay@ra.mcs.anl.gov  Thu Sep 12 21:31:35 1996
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> To: sun-managers@ra.mcs.anl.gov
> Subject: No Shell for supper user
> Mime-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-MD5: 2d0k1z/DpL2FkQ8YobLX8Q==
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

>From ugur@best.com.tr Fri Sep 13 17:03:10 1996
Return-Path: <ugur@best.com.tr>
Received: from piper.best.com.tr by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id RAA07732; Fri, 13 Sep 1996 17:02:53 -0400
Received: from ugur.best.com.tr (pppnode1.best.com.tr) by best.com.tr (4.1/IDA-1.4)
	id AA01298; Sat, 14 Sep 96 00:12:28 +0300
Date: Sat, 14 Sep 96 00:12:28 +0300
Message-Id: <9609132012.AA01298@piper.best.com.tr>
X-Sender: ugur@best.com.tr
X-Mailer: Windows Eudora Light Version 1.5.2
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
From: Ugur Ayfer <ugur@best.com.tr>
Subject: Re: No Shell for supper user
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: MxyV1dlK2PAvnxquKXsuFQ==
Content-Length: 1151

At 14:28 12.09.1996 -0400, you wrote:
>Hi al,
>
>Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
>missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
>give a message "no shell" and kick back to login prompt.  I even try to
boot at 
>single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
>log in as moral user and su to root but it also fail.  Could anyone please
help 
>me with this.  My teammate is going to hang me soon.
>
>Thank you 
>

Theere a few ways that I know can help you  around this problem 

1. If your wks is on a TCP/IP net and IF you have root access to another
workstation which is ALREADY mentioned in the /etc/hosts.equiv file of this
specific workstation; then you can rcp a good passwd file .

2. If not, or this seems too complicated for you you might choose a more
straightforward solution :

  boot the wks up from CD or tape.
  mount the disks root directory to any place you want in your miniroot.
  use any editor to edit the passwd file on the monted partition.

If you need more details I might ber help to you

Regards

Ugur Ayfer

>


>From charles@calfp.co.uk Fri Sep 13 17:23:40 1996
Return-Path: <charles@calfp.co.uk>
Received: from relay-4.mail.demon.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id RAA07742; Fri, 13 Sep 1996 17:23:33 -0400
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net  id bg03359;
          13 Sep 96 10:18 GMT
Received: from calfp.demon.co.uk ([158.152.70.168]) by relay-3.mail.demon.net
           id aa21598; 13 Sep 96 8:19 BST
Received: from pauillac.calfp.uk by brouilly.calfp.co.uk (SMI-8.6/SMI-SVR4)
	id IAA02854; Fri, 13 Sep 1996 08:18:57 +0100
Received: from irancy.calfp.uk by pauillac.calfp.uk (5.x/SMI-SVR4)
	id AA19818; Fri, 13 Sep 1996 08:18:53 +0100
Received: by irancy.calfp.uk (SMI-8.6/SMI-SVR4)
	id IAA01502; Fri, 13 Sep 1996 08:18:50 +0100
Date: Fri, 13 Sep 1996 08:18:50 +0100
From: Charles Best <charles@calfp.co.uk>
Message-Id: <199609130718.IAA01502@irancy.calfp.uk>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 76

	- boot from a cd or net
	- cd to /a/etc
	- edit the passwd file
	- reboot


>From u00y0123@hsc.hac.com Fri Sep 13 17:26:02 1996
Return-Path: <u00y0123@hsc.hac.com>
Received: from igate1.hac.com by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id RAA07747; Fri, 13 Sep 1996 17:26:01 -0400
From: u00y0123@hsc.hac.com
Received: from hacgate.es.hac.com ([147.17.50.21]) by igate1.hac.com (4.1/SMI-4.1)
	id AA11522; Fri, 13 Sep 96 14:31:32 PDT
Received: from hscw449.hsc.hac.com (X-147-17-11-46.ES.HAC.COM) by hacgate.es.hac.com (4.1/SMI-4.1)
	id AA05608; Fri, 13 Sep 96 14:31:25 PDT
Organization: Hughes Space and Communications Company
Received: by hscw449.hsc.hac.com (4.1/SMI-4.1)
	id AA04555; Fri, 13 Sep 96 14:32:35 PDT
Date: Fri, 13 Sep 96 14:32:35 PDT
Message-Id: <9609132132.AA04555@hscw449.hsc.hac.com>
To: bobby@c2sism1.monmouth.army.mil
Subject: Re: No Shell for supper user
Status: RO
Content-Type: text
X-Sun-Charset: US-ASCII
Content-Length: 1436

> From sun-managers-relay@ra.mcs.anl.gov Thu Sep 12 12:33:58 1996
> Organization: Hughes Space and Communications Company
> Date: Thu, 12 Sep 1996 14:28:09 -0400
> From: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Subject: No Shell for supper user
> Sender: sun-managers-relay@ra.mcs.anl.gov
> To: sun-managers@ra.mcs.anl.gov
> Reply-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Mime-Version: 1.0
> Content-Type> : > text/plain> ; > charset=US-ASCII> 
> Content-Transfer-Encoding: 7bit
> Content-Md5: 2d0k1z/DpL2FkQ8YobLX8Q==
> Followup-To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
> Content-Length: 474
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 
Hi Bobby -

The problem is still in your passwd file... first, make sure you have
/bin/ksh, but if you still have problems, reedit your passwd file and
manually type in the root acct record. Sometimes a strange invisible
character is there and the system will say: "no shell"...

>Les Greene
>Hughes Space and Comm


>From cs911089@ariel.cs.yorku.ca Fri Sep 13 22:15:14 1996
Return-Path: <cs911089@ariel.cs.yorku.ca>
Received: from red.ariel.cs.yorku.ca by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id WAA07832; Fri, 13 Sep 1996 22:15:13 -0400
Received: by ariel.cs.yorku.ca (8.6.12/YU_CS_869.1.2.Ariel)
	id WAA21498; Fri, 13 Sep 1996 22:20:28 -0400
Received: from blue by red with SMTPD id <21497>; Fri, 13 September 1996 22:20:28 2000
Date: Fri, 13 Sep 1996 22:20:28 -0400 (EDT)
From: Jason Keltz <cs911089@ariel.cs.yorku.ca>
X-Sender: cs911089@blue
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.SOL.3.95.960913221834.4758A-100000@blue>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: jBGOoT4RkHf5SJHnXyljgg==
Content-Length: 849

On Thu, 12 Sep 1996, Bobby Huynh wrote:

> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.

Simply boot from cdrom:

boot -s cdrom

The cdrom has it's own blank password file so you'll be able to login
without a problem.  Next, fsck and mount the root filesystem into /mnt
(the cdrom contains both /mnt and /a as mount points).  Make the change in
/etc/password, reboot, and you're back in business...

Jason Keltz
jas@cs.yorku.ca



>From milt@iqsc.com Sat Sep 14 06:00:22 1996
Return-Path: <milt@iqsc.com>
Received: from IQSC.COM by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id GAA08031; Sat, 14 Sep 1996 06:00:20 -0400
Received: from walker.iqsc.com by IQSC.COM with smtp
	(Smail3.1.29.1 #1) id m0v1rcK-000RZ5C; Sat, 14 Sep 96 06:06 EDT
Received: by walker.iqsc.com (Smail3.1.29.1 #1)
	id m0v1rdV-00031YC; Sat, 14 Sep 96 06:07 EDT
Date: Sat, 14 Sep 1996 06:07:41 -0400 (EDT)
From: Milt Webb <milt@iqsc.com>
X-Sender: milt@walker
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-ID: <Pine.SUN.3.91.960914060636.20161D-100000@walker>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: bwGFl0zdep6fENGYxco1LA==
Content-Length: 825

On Thu, 12 Sep 1996, Bobby Huynh wrote:

> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
> give a message "no shell" and kick back to login prompt.  I even try to boot at 
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
> log in as moral user and su to root but it also fail.  Could anyone please help 
> me with this.  My teammate is going to hang me soon.
> 
> Thank you 
> 

Boot from a CD, mount the hard drive and edit the passwd file. Only way I 
know to fix it. If you need exact examples to do this let me know.

			Milt Webb, IQ Software Corp.

		Some people drink from the fountain of life, 
			while others just rinse and spit.
			       -- anonymous 


>From hwe@uebemc.siemens.de Sat Sep 14 08:57:03 1996
Return-Path: <hwe@uebemc.siemens.de>
Received: from isar.uebemc.siemens.de by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id IAA08079; Sat, 14 Sep 1996 08:49:12 -0400
Received: from uebemc.siemens.de ([132.29.3.155]) by isar.uebemc.siemens.de (4.1/isar V1.2 for bobby@c2sism1.monmouth.army.mil)
	id AA29447; Fri, 13 Sep 96 09:52:13 +0200
Received: from rahel by uebemc.siemens.de (4.1/SMI-4.1)
	id AA01006; Fri, 13 Sep 96 09:52:11 +0200
Received: from ingrid.emc by rahel (5.0/Solaris2-Server 0.9)
	id AA21031; Fri, 13 Sep 1996 09:53:36 +0200
Received: by ingrid.emc (SMI-8.6/SMI-SVR4)
	id JAA23023; Fri, 13 Sep 1996 09:53:38 +0200
Message-Id: <199609130753.JAA23023@ingrid.emc>
X-Mailer: exmh version 1.6.4 10/10/95
To: bobby@c2sism1.monmouth.army.mil (Bobby Huynh)
Subject: Re: No Shell for supper user
In-Reply-To: Your message of "Thu, 12 Sep 1996 14:28:09 MET DST."
             <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Date: Fri, 13 Sep 1996 09:53:38 +0200
From: Herbert Wengatz <hwe@uebemc.siemens.de>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: NBuRfyCVsioDTQoya+z8rA==
Content-Length: 1143

+> Hi al,
+> 
+> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I 
+> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it 
+> give a message "no shell" and kick back to login prompt.  I even try to boot at 
+> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to 
+> log in as moral user and su to root but it also fail.  Could anyone please help 
+> me with this.  My teammate is going to hang me soon.
+> 
+> Thank you 

Boot your system from CD. - Then stop the installation and mount your regular root
parttion. Go to the etc-directory and change the hosts, umount, reboot, ready.

Reagrds,

Herbert

BTW: What is a supper user ? A special guest you only invite for supper ? ;-)
_____________________________________________________________________
Herbert Wengatz, 81375 Munich |Disclaim: This Mail is my own opinion, 
Office :hwe@uebemc.siemens.de |not that of my company.
Private:hwe@rtfact.muc.de     | http://www.muc.de/~hwe/rtfact
               "Excellence is a moving target."
------ Hiroshima '45 ---- Chernobyl '86 ---- Windows '95 ------------



>From yangsf@mail.netchina.co.cn Mon Sep 16 04:35:08 1996
Return-Path: <yangsf@netchina.co.cn>
Received: from mail.netchina.co.cn by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id EAA08862; Mon, 16 Sep 1996 04:34:50 -0400
Received: from hyper ([202.4.142.168]) by mail.netchina.co.cn
          (Netscape Mail Server v1.1) with SMTP id AAA19634
          for <bobby@c2sism1.monmouth.army.mil>;
          Mon, 16 Sep 1996 15:11:13 +0900
Sender: yangsf@netchina.co.cn (yangsf)
Message-ID: <323CEFCA.1D24@mail.netchina.co.cn>
Date: Mon, 16 Sep 1996 14:12:26 +0800
From: Yang Sanfu <yangsf@mail.netchina.co.cn>
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m)
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
References: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: p/C96GgqgrGCQo8wJoEKEA==
Content-Length: 617

Bobby Huynh wrote:
> 
> Hi al,
> 
> Somehow I edit /etc/passwd to change current setting shell to ksh for root.  I
> missed typing /sbin/ksh instead of /bin/ksh.  as soon as I log in as "root" it
> give a message "no shell" and kick back to login prompt.  I even try to boot at
> single user (ok> boot -s or boot -S).  It give me a same error.  I did try to
> log in as moral user and su to root but it also fail.  Could anyone please help
> me with this.  My teammate is going to hang me soon.
> 
> Thank you

My solution is,

ok boot cdrom -s
#mount /dev/... /a
#cd /a/etc/
#vi passwd
#umount /a
#reboot

Good luck

>From huikomix@dt.com.hk Mon Sep 16 04:43:15 1996
Return-Path: <huikomix@dt.com.hk>
Received: from hk.super.net by c2sism1.monmouth.army.mil (SMI-8.6/SMI-SVR4)
	id EAA08871; Mon, 16 Sep 1996 04:43:12 -0400
Received: from dt.com.hk (dt.com.hk [202.64.175.130]) by hk.super.net (8.7.5/8.7.1) with SMTP id QAA13361 for <bobby@c2sism1.monmouth.army.mil>; Mon, 16 Sep 1996 16:48:28 +0800 (HKT)
Received: from cyinet by dt.com.hk (5.x/SMI-SVR4)
	id AA07550; Mon, 16 Sep 1996 16:48:13 +0800
Date: Mon, 16 Sep 1996 16:48:12 +0800 (HKT)
From: "Xu, Guo Miao (Hui, Kwok Miu)" <huikomix@dt.com.hk>
X-Sender: huikomix@cyinet
To: Bobby Huynh <bobby@c2sism1.monmouth.army.mil>
Subject: Re: No Shell for supper user
In-Reply-To: <199609121828.OAA06536@c2sism1.monmouth.army.mil>
Message-Id: <Pine.SOL.3.91.960916164704.7083C-100000@cyinet>
Status: RO
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-MD5: pReBp3gnXRn7RUf0PY66iw==
Content-Length: 115



You may boot your system from CD-ROM and mount the root file system and 
modify '/etc/passwd'.


Best Regards,




