From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 18:49:16 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 8809F16A4CE for ; Fri, 3 Sep 2004 18:49:16 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1808043D3F for ; Fri, 3 Sep 2004 18:49:16 +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 i83InCQ04157; Fri, 3 Sep 2004 14:49:12 -0400 (EDT) From: Jerry McAllister Message-Id: <200409031849.i83InCQ04157@clunix.cl.msu.edu> To: messmate@free.fr (messmate) Date: Fri, 3 Sep 2004 14:49:10 -0400 (EDT) In-Reply-To: <20040903204122.4d8fb4d5@eric.placeverte.home> from "messmate" at Sep 03, 2004 08:41:22 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: questions@freebsd.org 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 18:49:16 -0000 > > Thank, i'll try it. tis easy. Either vipw or chsh will do it fine. But, you need to use the full path for bash (or whatever other shell you name) Also, that path needs to be listed in /etc/shells so you may need to edit that file as well - using regular vi. > -i means interactive. Yes, it is unnecessary though. What I meant is I don't know if you could use the -i in the passwd file. But, you don't nead it anyway. It is redundant. ////jerry > mess-mate > > On Fri, 3 Sep 2004 10:22:54 -0400 (EDT) > Jerry McAllister wrote: > > >> > >> 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 > >> _______________________________________________ > > >