From owner-freebsd-questions@FreeBSD.ORG Fri Sep 8 16:14:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 478C416A4DE for ; Fri, 8 Sep 2006 16:14:44 +0000 (UTC) (envelope-from jerrymc@msu.edu) Received: from sys20.mail.msu.edu (sys20.mail.msu.edu [35.9.75.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8B9C43D67 for ; Fri, 8 Sep 2006 16:14:37 +0000 (GMT) (envelope-from jerrymc@msu.edu) Received: from jerrymc by sys20.mail.msu.edu with local (Exim 4.52 #1) id 1GLj00-0002Dv-NN; Fri, 08 Sep 2006 12:14:36 -0400 References: <1157680784.3025.7.camel@freebsd.ffnz.net> In-Reply-To: <1157680784.3025.7.camel@freebsd.ffnz.net> From: "Jerold McAllister" To: Joshua Lewis Date: Fri, 08 Sep 2006 12:14:35 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: X-Virus: None found by Clam AV Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Shells X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 16:14:44 -0000 Joshua Lewis writes: > My shell mysteriously changed. I don't know what port changed the shell > but how do I put it back to normal. I liked how when I was logged in or > su'ed to root I had a prompt with the computer name and a hash sign. Now > I have a percent sign and when I try to change the shell with chsh I can > not get it to work anymore. > > I am doing chsh -s /bin/sh is that correct? Is that the default BSD > shell? It sounds like either your .profile (for sh) or your .cshrc (for tcsh) is what got changed. That is where the prompt will be determined by the setting of the 'prompt' variable. But, to your specific question, you should be able to set your shell using chsh. I think you only need the -s if you call it by 'chpass' instead of chsh, but I am not sure. If you have root access, then you can also change your shell in the passwd file directly using vipw(8). Just use vipw to edit the shell field in the passwd file entry and write and exit out of vipw. If you do not have root access, then you cannot modify it with vipw. If there was no shell specified in the shell field, the system would have given you /bin/sh by default. If the shell you are trying to change to or from is not listed in //etc/shells, then it will not allow you to make the change with the chsh command. If you have root access, you can modify the content of /etc/shells to add any that you need to use. ////jerry > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >