Date: Fri, 3 Sep 2004 10:22:54 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: messmate@free.fr (messmate) Cc: freebsd-questions-en <freebsd-questions@freebsd.org> Subject: Re: bash = default Message-ID: <200409031422.i83EMuD02308@clunix.cl.msu.edu> In-Reply-To: <20040903155336.26fcbefe@eric.placeverte.home> from "messmate" at Sep 03, 2004 03:53:36 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 > _______________________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409031422.i83EMuD02308>