OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.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[11560]: User johnl not allowed because
> shell /bin/bash does not exist
> Dec 2 07:37:55 2d2-dhcp-2-2-2 sshd[11560]: input_userauth_request: illegal
> user johnl
> Dec 2 07:37:55 2d2-dhcp-2-2-2 sshd[11560]: 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[11560]: 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)

iD8DBQE/zicguUf1YjPlx/ARAueiAJ9R/j0lfFksUtT8dUUAEPHgtnIqEwCfSGH3
ThM7tO2lDdWkF55SrmPwOQY=
=swiC
-----END PGP SIGNATURE-----

_______________________________________________
Pam-list mailing list
Pam-listredhat.com
https://www.redhat.com/mailman/listinfo/pam-list