*BSD News Article 84350


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.mathworks.com!solaris.cc.vt.edu!cray-ymp.acm.stuorg.vt.edu!grail
From: Giao Nguyen <grail@cray-ymp.acm.stuorg.vt.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: loss of root password
Date: 6 Dec 1996 06:55:33 GMT
Organization: ACM Student Machine
Lines: 17
Message-ID: <588g15$lm0@solaris.cc.vt.edu>
References: <32A7AF66.49FF@li.net>
NNTP-Posting-Host: cray-ymp.acm.stuorg.vt.edu
NNTP-Posting-User: grail
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 961025]

In comp.unix.bsd.freebsd.misc Jeff Auerbach <jauerbac@li.net> wrote:
: I changed my root shell to /bin/ksh not thinking at the time that the
: ksh was actually in /usr/local/bin.  Basically I cannot log in as root
: or su anymore because of the lack of shell.  How can I fix this without
: rebuilding the system.  I want my rootly powers back.

Boot into single user mode by using the -s flag at the boot prompt.

Once you're at the shell:

mount -a -t ufs
chsh or vipw depending on your preferences

-- 
Giao Nguyen
Computer Science Student
Will program for food