From owner-freebsd-questions Wed Jan 26 13:25:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id 45BA5150EA for ; Wed, 26 Jan 2000 13:25:51 -0800 (PST) (envelope-from mw@theatre.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id WAA10891; Wed, 26 Jan 2000 22:25:46 +0100 (CET) Received: (from mw@localhost) by theatre.lan (8.9.3/8.9.3) id VAA52314; Wed, 26 Jan 2000 21:59:03 +0100 (CET) (envelope-from mw) Date: Wed, 26 Jan 2000 21:59:03 +0100 From: Martin Welk To: Sam Hays Cc: freebsd-questions@FreeBSD.ORG Subject: Re: more specifics on my shell issues Message-ID: <20000126215903.F45379@theatre.lan> Reply-To: mw@sax.de References: <003f01bf6810$c8bf2a00$297631cc@ecofl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <003f01bf6810$c8bf2a00$297631cc@ecofl.com>; from sam@ecofl.com on Wed, Jan 26, 2000 at 09:19:48AM -0600 Organization: Private UUCP/Usenet site. X-Operating-System: FreeBSD http://www.freebsd.org/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 26, 2000 at 09:19:48AM -0600, Sam Hays wrote: > I'm defaulting as csh, > I'm (for right now) wanting to go to /bin/sh, rather than /bin/csh, > my understanding was that you can edit your ~/.profile (or something > similar) to change your > default shell? or am I going to have to pull a passwd -s /bin/sh or > something? > > maybe that'll help in answering both questions? Look at the chsh/chpass(1), passwd(5) man pages. You have to change the /etc/passwd entry for the user you want the shell to be changed, either by using vipw (editing the whole file as root in a ee or vi editor) or by using chsh (_ch_ange _sh_ell) when logged in as the user who wants to do so. You can only use shells validated by entries in /etc/shells, which is always done for /bin/sh and /bin/csh and also by shells installed through the ports/packages mechanism, like bash (/usr/local/bin/bash) or others. Regards, Martin -- ,,You know, there's a lot of opportunities, if you're knowing to take them, you know, there's a lot of opportunities, if there aren't you can make them, make or break them!'' (Tennant/Lowe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message