Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 1999 00:14:28 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        vince@venus.GAIANET.NET (Vincent Poy)
Cc:        cjclark@home.com, FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: FreeBSD 3.3-RELEASE passwd issue
Message-ID:  <199910230414.AAA34594@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <Pine.BSF.4.05.9910222035001.5072-100000@venus.GAIANET.NET> from Vincent Poy at "Oct 22, 1999 08:36:47 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Vincent Poy wrote,
> On Fri, 22 Oct 1999, Crist J. Clark wrote:
> 
> > Vincent Poy wrote,
> > > Greetings,
> > > 
> > > 	I installed a new machine on 3.3-RELEASE and copied the passwords
> > > entries from another 3.2-RELEASE machine.  I installed des on both
> > > machines but for some odd reason, the following as a example will not be
> > > recognized on the 3.3-RELEASE machine in /etc/master.passwd as a valid
> > > password while it worked fine when I copied it from 3.1-RELEASE, -CURRENT
> > > and even 2.2.x machines.
> > > 
> > > vince:7G2DAweJ1/D8c:1001:0::0:0:Vincent Poy,,,:/home/vince:/usr/local/bin/tcsh
> > 
> > OK, this is a typical DES 13 character password.
> >
> > > 	So I had to run passwd on each user to manually do the passwords
> > > resulting that the passwords are DES as shown below:
> > > 
> > > vince:$1$I1DcF26E$/qf90HbgJHM3vhqDbu1Pl/:1001:0::0:0:Vincent Poy,,,:/home/vince:/usr/local/bin/tcsh
> > 
> > This is not a DES password. This is an MD5 password.
> > 
> > > 	Seems that the DES package can't read MD5 passwords like it can in
> > > older releases.  Anyone have any ideas what I'm doing wrong?  
> > 
> > No, it looks to me like you have it backwards, that you really did not
> > install DES on this system.
> 
> 	Really?  It seems to be the other way around... Maybe I may have
> remembered it wrong but I thought the one with $ was DES.

Nope, see the sources,

% more /usr/src/secure/lib/libcrypt/crypt.c
.
.
.
        if (!strncmp(setting, "$1$", 3))
                return crypt_md5(key, setting);
.
.
.


> Anyways, I
> downloaded the des and did sh install.sh and installed and it works fine
> after copying the old passwords over but passwd generates $ format
> passwords and I'm sure I have DES because of the following:
> 
> -r--r--r--  1 root  wheel  53118 May 17 17:41 /usr/lib/libdes.a
> lrwxrwxrwx  1 root  wheel     11 Oct 21 16:37 /usr/lib/libdes.so ->
> libdes.so.3
> -r--r--r--  1 root  wheel  35678 May 17 17:41 /usr/lib/libdes.so.3
> -r--r--r--  1 root  wheel  56608 May 17 17:41 /usr/lib/libdes_p.a
> -r--r--r--  1 root  wheel  13018 May 17 17:37 /usr/lib/libdescrypt.a
> lrwxrwxrwx  1 root  wheel     16 Oct 21 16:37 /usr/lib/libdescrypt.so ->
> libdescrypt.so.2
> -r--r--r--  1 root  wheel  12965 May 17 17:37 /usr/lib/libdescrypt.so.2
> -r--r--r--  1 root  wheel  14750 May 17 17:37 /usr/lib/libdescrypt_p.a

OK, you _have_ DES, but what are the /usr/lib/libcrypt* links pointing
to?
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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