Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
Re: SSH and Pam: shell /bin/bash does not exist
From: Ed Schmollinger (schmollifrozencrow.org)
Date: Wed Dec 03 2003 - 12:10:40 CST
On Tue, Dec 02, 2003 at 06:48:00AM -0700, Gabby James wrote:
> When I try to ssh into the system, I receive the following error messages
> in /var/log/secure:
> Dec 2 07:37:55 2d2-dhcp-2-2-2 sshd: User johnl not allowed because
> shell /bin/bash does not exist
> Dec 2 07:37:55 2d2-dhcp-2-2-2 sshd: input_userauth_request: illegal
> user johnl
> Dec 2 07:37:55 2d2-dhcp-2-2-2 sshd: Failed none for illegal user
> johnl from 10.2.1.3 port 32932 ssh2
> Dec 2 07:37:57 2d2-dhcp-2-2-2 sshd: Failed password for illegal
> user johnl from 10.2.1.3 port 32932 ssh2
> [ ... ]
> I can use telnet without any problems, but ssh gives me problems.
> /bin/bash does exist on my system. It is executable, owned by root and has
> a mode of 766.
Sounds like a misleading error message. Change the mode on /bin/bash to
be 755. Why oh why is /bin/bash world-writable?
Oh the off chance that you typoed and meant to say the mode was 755, you
may also want to double-check that there isn't a trailing whitespace on
the johnl passwd file entry. The log message appears to have an extra
space in it.
Ed Schmollinger - schmollifrozencrow.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
-----END PGP SIGNATURE-----
Pam-list mailing list