Re: Summary: How to fix root entry of passw

From: Robert Hu (rhh@jolt.att.com)
Date: Thu Apr 14 1994 - 09:24:24 CDT


        I did the same thing a while back. If your machine allows it, try to ftp into it
        as root. Your can then either put in a new version of /etc/passwd or create the
        misstyped directory and put in a copy of shell.

Robert Hu
-----------------------------------------------------------------------------------------------

In article 94Apr13204116@se05.wg2.waii.com, dla@se05.wg2.waii.com (Doug Acker) writes:
> >>>>> "Ning" == Ning Qian <qian@peduncle.ai.mit.edu> writes:
> In article <2ohov1INN330@life.ai.mit.edu> qian@peduncle.ai.mit.edu (Ning Qian) writes:
>
>
> Ning> Hi, I posted the following message a couple of days ago:
>
> Ning> : I have a SPARC 10 that runs Solaris 2.3. Yesterday : I
> Ning> was trying to change the root login shell to "tcsh" by :
> Ning> modifying the passwd file but I had a typo in the pathname :
> Ning> to tcsh. Now I can't log in as root anymore; the machine :
> Ning> complains "No Shell" and then logs me out. I can log into :
> Ning> the machine as a non-superuser but then I don't have the :
> Ning> permission to change the passwd file. Is there a way to :
> Ning> fix the problem without erasing the hard disk?
>
> Ning> It might be simpler to boot to single user mode with the
> Ning> command "boot cdrom -s" as suggested by several people but I
> Ning> didn't get a chance to use it.
>
>
> That won't work .. under Solaris 2.3, single user mode asks for the password.
>
> --
> Douglas L.Acker Western Geophysical Exploration Products
> ____ ____ ____ a division of Western Atlas International Inc.
> \ \ / /\ / /\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> \ \/ / \ / / \ Internet : acker@wg2.waii.com
> \ / / \ / /\ \ Voice : (713) 964-6128
> \/___/ \/___/ \___\ Fax: : (713) 781-7417



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:58 CDT