From owner-freebsd-questions Sat May 29 23:57:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (Postfix) with ESMTP id DB77414CB0 for ; Sat, 29 May 1999 23:57:25 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.1/8.9.1) with SMTP id XAA04158; Sat, 29 May 1999 23:53:24 -0700 (PDT) Date: Sat, 29 May 1999 23:53:24 -0700 (PDT) From: Annelise Anderson Reply-To: Annelise Anderson To: Roy Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shell change In-Reply-To: <3750AD1D.DD35A5E4@yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Reboot and use -s at the boot prompt to go into single user mode. But first find out where tcsh is. Probably /usr/local/bin, if you installed tcsh from the ports collection. You could then use /sbin/mount -u -a to mount all the disks. You can then run vipw (/usr/sbin/vipw) to edit the password file. You probably have the path to tcsh wrong there. Also edit /etc/shells and make sure that the shell and its correct path are listed there. While you're at it, you might use the passwd command to give toor (the alternative root account) a password with passwd toor so you have an alternative root account. Edit /etc/groups and put toor in the wheel group. This is a comma-delimited list and should have no spaces. You can then use su toor if root doesn't work. Annelise On Sun, 30 May 1999, Roy wrote: > > > hi, > > Im running a freebsd 3.1 and i tried experimenting and changed the root > shell to tcsh from csh and now i cant log in as root, Is their a way t > orecover the shell and recover my root? can anybody please tell me i > need my root badly.. > > roy > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message