*BSD News Article 80718


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!howland.erols.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!informatik.tu-muenchen.de!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can't login as root What to do?
Date: 14 Oct 1996 19:15:33 GMT
Organization: interface business GmbH, Dresden
Lines: 19
Message-ID: <53u3gl$6kn@innocence.interface-business.de>
References: <53sno9$1392@news3.realtime.net>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

tushar@ecpi.com (Tushar Patel) wrote:

> I did "1,$ s/\bin/\bash/\/usr\/local/\bin/\bash/g"
> 
> And that fix all the users, but the root entry on the new machine
> was "/usr/local/bin/bash" so when I used the above mentioned
> it changed my root enrty to:
> /usr/local/usr/local/bin/bash

Boot single-user (-s at the boot prompt).  When the system comes up,
it will ask you for a shell, and offer `sh' as the default.  You can
accept it (or if you've even hosed this copy of the shell, you can
type /bin/csh there).  Then, remount your file systems r/w, and run
vipw.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j