*BSD News Article 58848


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!yarrina.connect.com.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!mozz.unh.edu!toto.plymouth.edu!oz.plymouth.edu!not-for-mail
From: ted@oz.plymouth.edu (Ted Wisniewski)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: HELP!!!...trashed root!!
Date: 4 Jan 1996 17:58:33 -0500
Organization: Plymouth State College - Plymouth, NH.
Lines: 14
Message-ID: <4chm2p$54j@oz.plymouth.edu>
References: <DKn0xF.3KD@news2.new-york.net>
NNTP-Posting-Host: oz.plymouth.edu

In article <DKn0xF.3KD@news2.new-york.net> le@put.com (Louis Epstein) writes:
>I absent-mindedly cshsh'ed the database for root on my accounts to a shell
>that wasn't on the machine...

	Boot Single user...  "-s" at the freebsd boot prompt.  mount the
root partition as writable "mount -u /" and mount /usr  You may need to fsck the
device before mounting it. and then do the chsh or vipw to change it back.


|   Ted Wisniewski    		     INET:  ted@oz.plymouth.edu          |
|   Computer Services                       ted@wiz.plymouth.edu         |
|   Plymouth State College                  tedw@psc.plymouth.edu        |
|   Plymouth NH, 03264               HTTP:  http://oz.plymouth.edu/~ted/ |