From owner-freebsd-isp Mon Oct 25 21: 6:49 1999 Delivered-To: freebsd-isp@freebsd.org Received: from bsdie.rwsystems.net (bsdie.rwsystems.net [209.197.223.2]) by hub.freebsd.org (Postfix) with ESMTP id BEB2614E38 for ; Mon, 25 Oct 1999 21:06:45 -0700 (PDT) (envelope-from jwyatt@rwsystems.net) Received: from bsdie.rwsystems.net([209.197.223.2]) (1300 bytes) by bsdie.rwsystems.net via sendmail with P:esmtp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for ; Mon, 25 Oct 1999 22:57:40 -0500 (CDT) (Smail-3.2.0.106 1999-Mar-31 #1 built 1999-Aug-7) Date: Mon, 25 Oct 1999 22:57:28 -0500 (CDT) From: James Wyatt To: jahanur Cc: 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 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