Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2004 17:03:12 +0100
From:      Ceri Davies <ceri@submonkey.net>
To:        Maxim Konovalov <maxim@macomnet.ru>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/71147: sshd(8) will allow to log into a locked account
Message-ID:  <20040830160312.GA36133@submonkey.net>
In-Reply-To: <200408301440.i7UEeB2Y064735@freefall.freebsd.org>
References:  <200408301440.i7UEeB2Y064735@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 30, 2004 at 02:40:11PM +0000, Maxim Konovalov wrote:
> The following reply was made to PR bin/71147; it has been noted by GNATS.
>=20
> From: Maxim Konovalov <maxim@macomnet.ru>
> To: Gleb Smirnoff <glebius@freebsd.org>
> Cc: bug-followup@freebsd.org
> Subject: Re: bin/71147: sshd(8) will allow to log into a locked account
> Date: Mon, 30 Aug 2004 18:37:16 +0400 (MSD)
>=20
>  On Mon, 30 Aug 2004, 14:00-0000, Gleb Smirnoff wrote:
> =20
>  > The following reply was made to PR bin/71147; it has been noted by GNA=
TS.
>  >
>  > From: Gleb Smirnoff <glebius@freebsd.org>
>  > To: Yar Tikhiy <yar@comp.chem.msu.su>
>  > Cc: FreeBSD-gnats-submit@freebsd.org, des@freebsd.org
>  > Subject: Re: bin/71147: sshd(8) will allow to log into a locked account
>  > Date: Mon, 30 Aug 2004 17:50:14 +0400
>  >
>  >  On Mon, Aug 30, 2004 at 04:52:54PM +0400, Yar Tikhiy wrote:
>  >  Y> 	In FreeBSD (and other BSDs,) the well-known way to lock out
>  >  Y> 	a user's account is setting the user's encrypted password to
>  >  Y> 	an asterisk character, `*', in master.passwd.  Arguably, one
>  >  Y> 	can also lock out a user by just _prefixing_ the password field
>  >  Y> 	value with `*'.  Anyway, sshd(8) will ignore either lock
>  >  Y> 	and allow the user to log in if he authenticates himself by
>  >  Y> 	means other than the Unix password, e.g., using his public key.
>  >
>  >  This is not a bug, it's a feature! Any ssh (not only Open) has the
>  >  same behavior on any unix operating system.
> =20
>  sshd works as expected (does not allow to login to a system) on
>  solaris 8.

Solaris has two strings for locked out accounts:

	*LK* which indicates that an account is locked
	*NP* which indicates that an account has no password and that
	     only other authentication mechanisms should succeed

Which one works?

Ceri
--=20
It is not tinfoil, it is my new skin.  I am a robot.

--IJpNTDwzlM2Ie8A6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQFBM0/AocfcwTS3JF8RAh2sAKCTYA4EreLcst46KR1EIpfAvbUq1wCgxQT8
f11a6dCC+JNTA6aCE59Dqx4=
=5BCa
-----END PGP SIGNATURE-----

--IJpNTDwzlM2Ie8A6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040830160312.GA36133>