From owner-freebsd-questions@FreeBSD.ORG Wed Mar 4 05:02:15 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97EBB1065670 for ; Wed, 4 Mar 2009 05:02:15 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 4DADB8FC0C for ; Wed, 4 Mar 2009 05:02:15 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by gxk24 with SMTP id 24so7308988gxk.19 for ; Tue, 03 Mar 2009 21:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=ItM/StrGq/4lVUevr3Uf/9f1Gq9HUjvFxPxF0s3XNQI=; b=nK9GWOPK6wgcE54HCvIj6EfcQiJGb8c42u7ya3h0x555Vjm9TsdKh9jhgYj3dGT3j+ Ccqa+3+Ta4x/u2/01wgi075bwPQit3sxJGT56Kn6dq8iPaheTp8PlvWkq3+MLHHcRCCd u359ORzxPhH+jRaCP16F3Cih3w6vQDyf6hlQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fry4oFag/Sp4ZfUzAcocPJIh7REbGclw8YyZpWECTOwBV+QtVEpsMODT4z8BD8v1yW bII+gLATK0P1TBx9F1rgoZcrQGoj31vbMGdd/KdNkrczE76uaOU6ot37siDLRYPRnEJ9 ghjr68McpYirCA1OTlP7Q+4NKjEw64Ke+vIZc= MIME-Version: 1.0 Received: by 10.220.76.132 with SMTP id c4mr2663187vck.94.1236142934686; Tue, 03 Mar 2009 21:02:14 -0800 (PST) In-Reply-To: <200903040449.n244nLMc052523@banyan.cs.ait.ac.th> References: <200903040449.n244nLMc052523@banyan.cs.ait.ac.th> Date: Tue, 3 Mar 2009 22:02:14 -0700 Message-ID: From: Tim Judd To: Olivier Nicole Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, lacalling@gmail.com Subject: Re: I cannot login coz bash is deinstalled 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: Wed, 04 Mar 2009 05:02:16 -0000 On Tue, Mar 3, 2009 at 9:49 PM, Olivier Nicole wrote: > Hi, > > > How can I change my shell to sh without logining? > > You cannot! > > But what you can: > > - boot in singkle user mode > - mount all your s=disks: mount -a > - edit /etc/passwd with your favourite editor > > Bests, > > olivier WRONG! DO NOT EDIT /etc/passwd DIRECTLY!!! vipw, or change your EDITOR environment variable to use something else other than vi. Otherwise correct.