[Gllug] user has two passwords?

Tom Gilbert tom at linuxbrit.co.uk
Mon Nov 5 18:50:05 UTC 2001


* Steve Nicholson (steve.nicholson at yoursolutions.com) wrote:
> Some how I have managed to set up a server so I have two different
> passwords for my same user account.  Only thing I can think that I have
> done is add a different password when I put samba on.  I have removed
> samba and can still logon at the console with either password.  This is
> bothering me, mainly coz I don't know why/how it is happening.  This is
> a new install and box isn't available on the Net (although I would like
> to put it there hence wanting to find out what's happening).
> 
> at the console or using ssh I can login as user "steve" with psw
> "abcxxx" or psw "abcyyy".  The passwords are similar but not the same.
> 
> Any ideas where I should be looking for this, "shadow" only appears to
> have one password in it.

$ grep -B4 PASS_MAX_LEN /etc/login.defs 
# Number of significant characters in the password for crypt().
# Default is 8, don't change unless your crypt() is better.
# If using MD5 in your PAM configuration, set this higher.
#
PASS_MAX_LEN            128

Tweak that, it defaults to 8 on most systems.

Tom.
-- 
   .^.    .-------------------------------------------------------.
   /V\    | Tom Gilbert, London, England | http://linuxbrit.co.uk |
 /(   )\  | Open Source/UNIX consultant  | tom at linuxbrit.co.uk    |
  ^^-^^   `-------------------------------------------------------'

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list