From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 19:16:06 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 B04071065673 for ; Fri, 16 Jan 2009 19:16:06 +0000 (UTC) (envelope-from dannyman@toldme.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 687CF8FC0A for ; Fri, 16 Jan 2009 19:16:06 +0000 (UTC) (envelope-from dannyman@toldme.com) Received: by yw-out-2324.google.com with SMTP id 9so716667ywe.13 for ; Fri, 16 Jan 2009 11:16:05 -0800 (PST) Received: by 10.90.32.14 with SMTP id f14mr1454872agf.118.1232133365534; Fri, 16 Jan 2009 11:16:05 -0800 (PST) Received: by 10.90.36.8 with HTTP; Fri, 16 Jan 2009 11:16:05 -0800 (PST) Message-ID: <2a5241e00901161116y112aba2em55897d75d2e73cf4@mail.gmail.com> Date: Fri, 16 Jan 2009 11:16:05 -0800 From: "Daniel Howard" To: "Kurt Bigler" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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: Fri, 16 Jan 2009 19:16:06 -0000 On Thu, Jan 15, 2009 at 11:16 PM, Kurt Bigler wrote: > Hi, > > 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. There is a delay of quite a few > seconds for the webmin Save operation to complete, whereas after ZZ the > vipw > completes without any perceptible delay. Kurt, 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? If you want to debug, you can try doing ssh -v and / or sshd -d. Good luck! Sincerely, -daniel -- http://dannyman.toldme.com