From owner-freebsd-isp Tue Oct 26 6:18:40 1999 Delivered-To: freebsd-isp@freebsd.org Received: from buffnet4.buffnet.net (buffnet4.buffnet.net [205.246.19.13]) by hub.freebsd.org (Postfix) with ESMTP id E1D7514D71 for ; Tue, 26 Oct 1999 06:18:35 -0700 (PDT) (envelope-from shovey@buffnet.net) Received: from buffnet11.buffnet.net (buffnet11.buffnet.net [205.246.19.55]) by buffnet4.buffnet.net (8.8.7/8.8.7) with ESMTP id JAA07447; Tue, 26 Oct 1999 09:18:26 -0400 (EDT) (envelope-from shovey@buffnet.net) Date: Tue, 26 Oct 1999 09:18:26 -0400 (EDT) From: Steve Hovey To: James Wyatt Cc: jahanur , freebsd-isp@FreeBSD.ORG Subject: Re: root access problem please help. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Why not boot stand alone (with -s) and when it says enter shell or press enter enter /bin/sh and then enter On Mon, 25 Oct 1999, James Wyatt wrote: > On Mon, 25 Oct 1999, jahanur wrote: > > HI, everybody, > > I have got a major problem. > > Whenever I try to login as root it says "su: /bin/bash: No such file or > > directory". > > After a lot investgation I found out that the other administrator was > > trying to change shell for some user. He is not shure what he did, but he > > ran the "chsh" command while he was root and probably changed the shell > > for the root. > > > > I have tried copying the "bash" in /bin directory by using "su root -c "cp > > bash /bin" from /usr/local/bin/ directory. > > I dont know what else I could do. > > Please help. > > > > Jahanur > > If I understand, can't you just do something like: > > su root -c "chsh" > > It's times like this I appreciate sudo... - Jy@ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message