[SunHELP] Root Access Problem

Lund, Dennis sunhelp at sunhelp.org
Fri Feb 9 15:41:12 CST 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C092E1.05E094B8
Content-Type: text/plain

DON'T CHANGE ROOT SHELL!  That said:

ok> boot cdrom -s
# mount /dev/dsk/c#t#d#s# /mnt
# cd /mnt/etc
# vi passwd

Change the root entry back to default "/bin/sh".
Save the file.  

# shutdown -i6 -g0 -y

That should do it.

Dennis L. Lund

-----Original Message-----
From: Krishna_Raj at forethought.com [mailto:Krishna_Raj at forethought.com]
Sent: Friday, February 09, 2001 10:08 AM
To: sunmanagers at sunmanagers.org
Cc: Sunhelp at sunhelp.org
Subject: [SunHELP] Root Access Problem


Hello everybody:

     When trying to change the default shell of root, I put in a incorrect
location (/sbin/ksh instead of /bin/sh) in /etc/passwd file. Without
realising,
I logged out & now, I am trying to logon, it says 'No shell' or invalid
shell. I
haven't set up any passwd for root. I even tried to ftp change the passwd
file
but, I am not able to ftp as root as because ID does not have password.

     How do I fix this problem ? I do not have OS CD with me, I got is
machine
pre-installed with Solaris 7.

Please let me know.
Thanks in Advance
Krishna


_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer. 



------_=_NextPart_001_01C092E1.05E094B8
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [SunHELP] Root Access Problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>DON'T CHANGE ROOT SHELL!  That said:</FONT>
</P>

<P><FONT SIZE=3D2>ok> boot cdrom -s</FONT>
<BR><FONT SIZE=3D2># mount /dev/dsk/c#t#d#s# /mnt</FONT>
<BR><FONT SIZE=3D2># cd /mnt/etc</FONT>
<BR><FONT SIZE=3D2># vi passwd</FONT>
</P>

<P><FONT SIZE=3D2>Change the root entry back to default =
"/bin/sh".</FONT>
<BR><FONT SIZE=3D2>Save the file.  </FONT>
</P>

<P><FONT SIZE=3D2># shutdown -i6 -g0 -y</FONT>
</P>

<P><FONT SIZE=3D2>That should do it.</FONT>
</P>

<P><FONT SIZE=3D2>Dennis L. Lund</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Krishna_Raj at forethought.com [<A =
HREF=3D"mailto:Krishna_Raj at forethought.com">mailto:Krishna_Raj at forethoug=
ht.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, February 09, 2001 10:08 AM</FONT>
<BR><FONT SIZE=3D2>To: sunmanagers at sunmanagers.org</FONT>
<BR><FONT SIZE=3D2>Cc: Sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: [SunHELP] Root Access Problem</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hello everybody:</FONT>
</P>

<P><FONT SIZE=3D2>     When trying to change the =
default shell of root, I put in a incorrect</FONT>
<BR><FONT SIZE=3D2>location (/sbin/ksh instead of /bin/sh) in =
/etc/passwd file. Without realising,</FONT>
<BR><FONT SIZE=3D2>I logged out & now, I am trying to logon, it =
says 'No shell' or invalid shell. I</FONT>
<BR><FONT SIZE=3D2>haven't set up any passwd for root. I even tried to =
ftp change the passwd file</FONT>
<BR><FONT SIZE=3D2>but, I am not able to ftp as root as because ID does =
not have password.</FONT>
</P>

<P><FONT SIZE=3D2>     How do I fix this problem ? =
I do not have OS CD with me, I got is machine</FONT>
<BR><FONT SIZE=3D2>pre-installed with Solaris 7.</FONT>
</P>

<P><FONT SIZE=3D2>Please let me know.</FONT>
<BR><FONT SIZE=3D2>Thanks in Advance</FONT>
<BR><FONT SIZE=3D2>Krishna</FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  =
SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhelp" =
TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></F=
ONT>
</P>
<BR>

<P>     - - - - - - -  Appended by =
Scientific-Atlanta, Inc.  - - - - - - - =20
<BR>This e-mail and any attachments may contain information which is =
confidential, proprietary, privileged or otherwise protected by law. =
The information is solely intended for the named addressee (or a person =
responsible for delivering it to the addressee). If you are not the =
intended recipient of this message, you are not authorized to read, =
print, retain, copy or disseminate this message or any part of it. If =
you have received this e-mail in error, please notify the sender =
immediately by return e-mail and delete it from your computer. </P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C092E1.05E094B8--



More information about the SunHELP mailing list