From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 04:16:06 2005 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 ECCAD16A4CE for ; Wed, 2 Mar 2005 04:16:06 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id B63CF43D46 for ; Wed, 2 Mar 2005 04:16:06 +0000 (GMT) (envelope-from bent@munat.com) Received: from [192.168.123.141] (c-24-18-111-28.client.comcast.net[24.18.111.28]) by comcast.net (rwcrmhc12) with ESMTP id <2005030204160601400hohu9e>; Wed, 2 Mar 2005 04:16:06 +0000 Message-ID: <42253FED.4010000@munat.com> Date: Tue, 01 Mar 2005 20:24:13 -0800 From: Ben Munat User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <422424B2.1040809@munat.com> <20050301080924.GM8778@dan.emsphone.com> <422427DB.50504@munat.com> <20050301103326.GD5353@gravitas.thebunker.net> <4224A622.5080806@munat.com> <20050301182012.GB64444@osiris.chen.org.nz> In-Reply-To: <20050301182012.GB64444@osiris.chen.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: tab completion 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: Wed, 02 Mar 2005 04:16:07 -0000 I used vipw to set my regular user's shell to tcsh. /etc/passwd shows it correct now but I still appear to be getting sh as my shell. If I run tcsh, I then get the tab completion. But how do I get the terminal to put me in tcsh automatically? Ben Jonathan Chen wrote: > On Tue, Mar 01, 2005 at 09:28:02AM -0800, Ben Munat wrote: > >>None of those commands worked... However, I've also found that echo $SHELL >>in my regular user's terminal says /bin/sh, while as root it says /bin/csh. > > > If you're using /bin/sh, then of course none of the given commands > will work as they are for tcsh. > > >>Both root and the non-root user's shells are listed in /etc/passwd as >>/bin/tcsh, so where else would the shell get set? Can I just set all >>terminals and all users (i.e. me) to have the same shell with the same >>capabilities? > > > I suspect that /etc/passwd has gotten out of sync with master.passwd. > Don't edit /etc/passwd. Use vipw(1) and make your changes within > there.