SUMMARY : (DISASTER !)

From: Narendranath Kalle (kalle@cs.wvu.edu)
Date: Fri Jul 08 1994 - 20:22:30 CDT


        The question was :-

        
> Hi Gurus,
>
> I made a dumb mistake. I changed the shell entry in the
> passwd file from '/sbin/sh' to '/sbin/csh' @#$@#$!#!!! Now, I can't
> login as root !!! I can get in as a user. I can't change any thing
> since it doesn't give 'su-shell'. When I login as su, it simply exits
> saying 'No Shell'. I have tried logging in as root but same message.
>
>
        
        I have received more than 100 answers. Out of all those I am posting
        two solutions.

        1. Suggested by Lori Colleran (lcollera@amgen.com).

                
You need to executing the following steps.

 1) Before you boot from CD, check out the device name of the / (root)
    partition by looking at the /etc/vfstab file. Normally the / (root)
    partition is /dev/dsk/c0t3d0s0.

 2) Put the Solaris 2.3 CD in the CD-ROM drive.

 3) Boot from CD using one of the following commands.

    If your boot prompt is "ok" then

    ok boot cdrom -sw

    If your boot prompt is ">" then

> b cdrom -sw

 4) The above command should boot to single-user and leave you at the
    single-user prompt, "#".

    # cd /tmp

 5) # mkdir mnt

 6) # cd /

 7) # mount /dev/dsk/c0t3d0s0 /tmp/mnt

    In the above step you would replace "c0t3d0s0" with what was found in
    step # 1 as the / (root) partition.
 
 8) # cd /tmp/mnt/etc

 9) # chmod 777 passwd

10) # cd /

11) # umount /tmp/mnt
 
12) # halt

13) Remove the Solaris 2.3 CD from the CD-ROM drive.

14) If your boot prompt is "ok" then

    ok boot -r

    If your boot prompt is ">" then
> b -r

15) Login in as any user except root at the "login:" prompt.

16) % cd /etc

17) % vi passwd

    Make the appropriate edits to the passwd file.

18) % su

19) Password:password

20) # chmod 644 passwd

===============================================================================

        
        2. Suggested by Don Baune ( don@doug.med.utah.edu).

        
We did this once and solved it by.
A: Booting from the CD rom. At the first suninstall window bring up another
   window.
B: mount /dev/dsk/c0t3d0s0 /mnt
C: cd /mnt/etc
D: chmod +w passwd
E: vi passwd
F: reboot

==============================================================================

        I hope this helps all those people who had faced this problem and had
to re-install the operating system.

        Thanks to :

Andreas.Fenner@bk.sel.de
Badri.illai@ecrc.de
Christian.Masopust@emndev.siemens.co.at
Eric.Olemans@esat.kuleuven.ac.be
MEYSTMA@DUVM.BITNET
PETER@LIBWARE.LIB.KLTE.HU
Paul.Bellan-Boyer@dss.fw.gs.com
Peter.Samuel@nms.otc.com.au
Rigert.Thomas@ch.swissbank.com
Ronald.C.Russell@ag.auburn.edu
anderson@neon.mitre.org
andres@bibiana.eng.miami.edu
andrew@mdlhk.attmail.com
bownes@lucas.emi.com
brb@ike.safb.af.mil
brian@cyrix.com
cds@sanjose.ssds.com
chris@tisc.edu.au
chughey@tango.cos.com
covingto@msmary.edu
danny@ews7.dseg.ti.com
dave@gaspra.pd.com
david@capmkt.com
david@magma.COM
df5slsn@is000913.bell-atl.com
dmaccara@bank-banque-canada.ca
don@doug.med.utah.edu
edk@mach10.utica1.kaman.com
elekokws@ee.nus.sg
emsca!asm@venezuela.sun.com
etnsed!rickm@uunet.uu.net
fetrow@biostat.washington.edu
hana!yt@uunet.uu.net
hedstrom@inf.ethz.ch
hendefd@tech.duc.auburn.edu
hkatz@nucmed.med.nyu.edu
hushing@gdwest.gd.com
jd@lri.stjosephs.london.on.ca
jna@concorde.com
jns@nas.nasa.gov
johan@heffa.softlab.se
johnm@sse.com
jun@crick.ssctr.bcm.tmc.edu
jzhu@helios.wichitaks.ncr.com
kbw2@helios.ath.epa.gov
kinscoe@ccmail.crc.com
kinscoe@ccmail.crc.com
kls@merlot.com
kxaghai@srv.pacbell.com
lacoursj@uprc.com
lafont02@cn.ca
lcollera@amgen.com
lf@gsc.ele.puc-rio.br
ljm@halsp.hitachi.com
lrhodes@ascs.aro.allied.com
martin@gea.hsr.it
mbecker@elf.igraph.com
miguel@dt.fee.unicamp.br
mn@saturn.demon.co.uk
nmj@ICSEAAda.levels.unisa.edu.au
pallas@oclc.org
paulo@tiete.dcc.unicamp.br
pjc@denver.ssds.com
randy@essex.ac.uk
riess@csq.uta.edu
rmills@ccd.harris.com
rogerj@lps.cornell.edu
rwh@atmos.albany.edu
rwing!pat@ole.cdac.com
sf@ced.berkeley.edu
sommer@vsun02.ag01.kodak.com
soporte!lsp@venezuela.sun.com
stanb@netsol.com
steve@cegelecproj.co.uk
sud@philabs.Philips.COM
sven@mpim-bonn.mpg.de
syd@dsinc.myxa.com
szh@zcon.com
thielen@irus.rri.uwo.ca
thomas@wiwi.hu-berlin.de
tim.cannon@amp.com
tom@il.pdc.com
tph@sbctri.sbc.com
vc@glass.geol.lsu.edu
white@erim.org
worsham@aer.com
wzhu@cse.unl.edu
yves@abcomp.be
zegarac@gdls.com
zinnato@NADC.NADC.NAVY.MIL
 
========================================================================
                                 \ /
                                (o o)
  /==========================oOO=(_)=OOo===========================\
  | Narendranath Kalle Phone : 304-293-2448 |
  | Dept of Comp. Science Address: 1064, Van Voorhis,#J418 |
  | West Virginia University Morgantown, WV 26505 |
  \=================================================================/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:05 CDT