From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 07:29:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 576151065673 for ; Sat, 17 Jan 2009 07:29:18 +0000 (UTC) (envelope-from kkb@breathsense.com) Received: from vps.breathsense.com (vps.breathsense.com [66.117.157.61]) by mx1.freebsd.org (Postfix) with SMTP id 272778FC18 for ; Sat, 17 Jan 2009 07:29:18 +0000 (UTC) (envelope-from kkb@breathsense.com) Received: (qmail 58948 invoked by uid 89); 17 Jan 2009 07:28:55 -0000 Received: from unknown (HELO ?192.168.1.5?) (69.181.11.54) by vps.breathsense.com with SMTP; 17 Jan 2009 07:28:55 -0000 User-Agent: Microsoft-Entourage/11.3.3.061214 Date: Fri, 16 Jan 2009 23:29:16 -0800 From: Kurt Bigler To: Message-ID: Thread-Topic: vipw and bash login shell Thread-Index: Acl4dU1KjBER1ORoEd2L8gAf81G8oA== In-Reply-To: <2a5241e00901161116y112aba2em55897d75d2e73cf4@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: Re: vipw and bash login shell 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: Sat, 17 Jan 2009 07:29:18 -0000 on 1/16/09 11:16 AM, Daniel Howard wrote: > On Thu, Jan 15, 2009 at 11:16 PM, Kurt Bigler wrote: > >> When I used vipw to change the login shell to /usr/local/bin/bash (which is >> listed in /etc/shells, and was built from ports), subsequent ssh login >> attempts fail (password rejected). If I change the shell back to /bin/sh >> or /bin/csh then login works again. >> >> If I instead use webmin Users and Groups to set the login shell to bash (or >> any other shell), everything is fine. [snip] > What happens if you change the shell via chsh? What happens if you attempt > to set a different shell, like /bin/tcsh? Do you get the same result when > you "log in" from within the shell using "login" or "su"? What does the > user's login line look like in /etc/master.passwd after either vipw or > webmin? Are you certain you aren't doing something silly with your editor > like a line wrap or DOS newlines? Apologies, I *was* doing something very silly. In vipw, I didn't actually do what I described. Instead I was inserting "ba" before "sh" to make "bash". But bash doesn't live in /bin, so I had the wrong path as a result. Webmin just gives me a multiple-choice popup, and so I was unable to make the same mistake there. Thanks for your response, which somehow helped me to focus and discover my mistake. -Kurt