Re: vipw and bash login shell
On Thu, Jan 15, 2009 at 11:16 PM, Kurt Bigler k...@breathsense.com 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: vipw and bash login shell
on 1/16/09 11:16 AM, Daniel Howard danny...@toldme.com wrote: On Thu, Jan 15, 2009 at 11:16 PM, Kurt Bigler k...@breathsense.com 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
vipw and bash login shell
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. This is with 7.0-RELEASE (Generic) on i386. Ports were updated sometime last week. Any thoughts much appreciated. -Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org