From owner-freebsd-questions Fri Oct 22 21:11:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 0B4F714D28 for ; Fri, 22 Oct 1999 21:11:12 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id AAA34594; Sat, 23 Oct 1999 00:14:28 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199910230414.AAA34594@cc942873-a.ewndsr1.nj.home.com> Subject: Re: FreeBSD 3.3-RELEASE passwd issue In-Reply-To: from Vincent Poy at "Oct 22, 1999 08:36:47 pm" To: vince@venus.GAIANET.NET (Vincent Poy) Date: Sat, 23 Oct 1999 00:14:28 -0400 (EDT) Cc: cjclark@home.com, FreeBSD-Questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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