From owner-freebsd-questions@FreeBSD.ORG Thu May 18 16:37:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFCEF16A496 for ; Thu, 18 May 2006 16:37:11 +0000 (UTC) (envelope-from zuan@mylinux.net.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F3CC43D55 for ; Thu, 18 May 2006 16:37:05 +0000 (GMT) (envelope-from zuan@mylinux.net.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C38CF6CC2B; Fri, 19 May 2006 00:53:14 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 46243-10; Fri, 19 May 2006 00:53:12 +0800 (MYT) Received: from [10.11.12.30] (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 7CC5F6CC23; Fri, 19 May 2006 00:53:12 +0800 (MYT) Message-ID: <446CA2AC.4080403@mylinux.net.my> Date: Fri, 19 May 2006 00:37:00 +0800 From: Izwan Mohd User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: unixforums 1 References: <20060518161525.18250.qmail@web39115.mail.mud.yahoo.com> In-Reply-To: <20060518161525.18250.qmail@web39115.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-questions@freebsd.org Subject: Re: how to change roots shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 16:37:16 -0000 Hope you have "sudo" you can do "sudo -u root bash" if don't nothing came cross my mine yet how to deal with it :-\ unixforums 1 wrote: > tried it and i get the following error: > > su: change: No such file or directory > > What happened originally is I accidently changed the shell to "change" > and now i get the following error when I su. > > su: change: No such file or directory > > This is a remote system so if at all possable i need to do it through ssh. > > Thanks > > */Izwan Mohd /* wrote: > > unixforums 1 wrote: > > >Hi, > > I did a completely newbie move and changed the root�s shell to > something that doesn�t work. So, needless to say now I can�t > su to root or even login as root. Is there a way I can fix this > without rebuilding the server? > > > > Thanks for any help you can provide. > > > > > >--------------------------------- > >Sneak preview the all-new Yahoo.com. It's not radically > different. Just radically better. > >_______________________________________________ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > > > > su root -c chsh root > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >