From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 14:23:00 2004 Return-Path: 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 044D616A4CE for ; Fri, 3 Sep 2004 14:23:00 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92EB243D31 for ; Fri, 3 Sep 2004 14:22:59 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i83EMuD02308; Fri, 3 Sep 2004 10:22:56 -0400 (EDT) From: Jerry McAllister Message-Id: <200409031422.i83EMuD02308@clunix.cl.msu.edu> To: messmate@free.fr (messmate) Date: Fri, 3 Sep 2004 10:22:54 -0400 (EDT) In-Reply-To: <20040903155336.26fcbefe@eric.placeverte.home> from "messmate" at Sep 03, 2004 03:53:36 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions-en Subject: Re: bash = default X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 14:23:00 -0000 > > Hello, > sorry but i'm more confortable with bash, Oh, that's so sad... > so > how can i obtain my bash -i on the login ? > (Without doing a 'bash -i' after the login.) Just change the login shell in the /etc/passwd file. use vipw(8) to edit the /etc/passwd file and replace the last field with /usr/local/bin/bash (or whatever its full path is) (don't edit /etc/passwd with regular vi or vim or emacs or whatever, use vipw to make sure it locks things correctly and updates the database when needed) I have never tried using a flag on the shell in the /etc/passwrd file so I don't know what the -i will do to it. You might have to add some quoting. You can also use chsh(1) to make the edit. ////jerry > > Thanks for your help. > mess-mate > _______________________________________________