From owner-freebsd-isp Tue Oct 26 6:33:54 1999 Delivered-To: freebsd-isp@freebsd.org Received: from dumbo.familyinet.net (dumbo.familyinet.net [206.105.51.10]) by hub.freebsd.org (Postfix) with ESMTP id 0ADB414C81 for ; Tue, 26 Oct 1999 06:33:50 -0700 (PDT) (envelope-from phill@freebsd.org) Received: from localhost (phill@localhost) by dumbo.familyinet.net (8.9.1/8.9.1) with ESMTP id IAA21364; Tue, 26 Oct 1999 08:50:13 GMT X-Authentication-Warning: dumbo.familyinet.net: phill owned process doing -bs Date: Tue, 26 Oct 1999 08:50:12 +0000 (GMT) From: Phillip Salzman X-Sender: phill@dumbo.familyinet.net 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 "man su" Use the su -m command. It will allow you to keep your current shell while acting as root. After you have done that, move the roots shell to csh or sh -- with vipw. -- Phillip Salzman phill@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 > > > > > 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