Openssh still logs in while passwd is locked

Austin Gonyou austin at
Fri May 24 06:02:14 EST 2002

I do still see this behavior on Linux as well though. What is the list
recommendation for that case, if any?

On Wed, 2002-05-22 at 15:12, Darren Moffat wrote:
> >Using OpenSSH 3.1p1 on a Sun Solaris 7 box, I disabled an account
> using the
> >'passwd -l ...' command to lock the users password. However, the
> user can
> >still access the system via ssh. Whilst I could do other things
> such as
> >moving their .ssh directory, removing their account home directory,
> etc,
> >etc, is there some 'nicer' way to inform ssh that the account is
> now locked
> >and thus to not allow them to login?
> The module doesn't check for *LK* in pam_acct_mgmt since
> it
> was assuming that pam_authenticate() had been called already - in
> those
> cases it would fail.  If however you are using publickey
> authentication
> rather than going through PAM with a password pam_acct_mgmt is
> called
> without first going to pam_authenticate().
> This has been fixed in the new pam modules for Solaris 9 where 
> does an explicit check for *LK* so it is now
> safe
> to call pam_acct_mgmt() if pam_authenticate() wasn't called.
> I would say that this is a bug in on Solaris 2.6
> onwards,
> you should log a call with Sun Enterprise Services.  I would
> recommend
> stating the bug as follows:
>         pam_sm_acct_mgmt() in does not check for the
> users
>         password being the lockstring (*LK*).  This has already been
> fixed
>         in Solaris 9 and I would like a similar
> fix
>         applied to for Solaris 7 onwards.
> --
> Darren J Moffat
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: austin at

"One ought never to turn one's back on a threatened danger and 
try to run away from it. If you do that, you will double the danger. 
But if you meet it promptly and without flinching, you will 
reduce the danger by half."
Sir Winston Churchill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : 

More information about the openssh-unix-dev mailing list