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