From owner-freebsd-questions Mon Dec 17 8:52:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from delaluz.net (kenner2D-blk1-hfc-0251-d1db1583.rdc2.tx.coxatwork.com [209.219.21.131]) by hub.freebsd.org (Postfix) with ESMTP id 4154D37B43A for ; Mon, 17 Dec 2001 08:51:53 -0800 (PST) Received: from delaluz.net ([216.230.150.30]) by delaluz.net (8.9.3/8.8.7) with ESMTP id LAA08347; Mon, 17 Dec 2001 11:03:09 -0600 Message-ID: <3C1E216E.7E617D7A@delaluz.net> Date: Mon, 17 Dec 2001 10:46:38 -0600 From: Gerardo Amaya X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Grant Innes Cc: freebsd-questions@freebsd.org Subject: Re: encryption and master.passwd References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You have to check your libcrypt try this ls -l /usr/lib/libcrypt* If the symbolic links point to libdescrypt*, youre using DES, if it points to libmd5crypt*, youre using MD5. I read that the symbolic link is pointing to libdescrypt* you're useing DES if it points to libmd5crypt* you have MD5 Here is my output ninofision:~$ ls -l /usr/lib/libcrypt* lrwxrwxrwx 1 root wheel 13 Aug 29 03:10 /usr/lib/libcrypt.a -> libdescrypt.a lrwxrwxrwx 1 root wheel 14 Aug 29 03:10 /usr/lib/libcrypt.so -> libdescrypt.so lrwxrwxrwx 1 root wheel 16 Aug 29 03:10 /usr/lib/libcrypt.so.2 -> libdescrypt.so.2 lrwxrwxrwx 1 root wheel 15 Aug 29 03:10 /usr/lib/libcrypt_p.a -> libdescrypt_p.a -r--r--r-- 1 root wheel 1275196 Nov 20 2000 /usr/lib/libcrypto.a lrwxrwxrwx 1 root wheel 14 Aug 29 03:10 /usr/lib/libcrypto.so -> libcrypto.so.1 -r--r--r-- 1 root wheel 782200 Nov 20 2000 /usr/lib/libcrypto.so.1 -r--r--r-- 1 root wheel 1362554 Nov 20 2000 /usr/lib/libcrypto_p.a I guess I'm with DES Gerardo Grant Innes wrote: > Hi Folks, > Following this discussion I've realized I don't know how to determine > whether a password is encrypted with DES or MD5. > Can someone shed some light on how to do this? > > Thanks, > > Grant > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of C J Michaels > Sent: Friday, December 14, 2001 10:41 PM > To: Daniel Leal > Cc: FreeBSD Questions > Subject: RE: encryption and master.passwd > > I believe that it depends upon what library /usr/lib/libcrypt.so is > symlinked to at the time the password is set. > > --Chris > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Daniel Leal > Sent: Sunday, December 09, 2001 1:50 PM > To: Anthony Atkielski > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: encryption and master.passwd > > yes, it worked! maybe you are right... I read the passwd man page and > notice that passwd "read" the login.conf file where its writen: > ... > default:\ > :passwd_format=md5:\ > ... > > thanks > > Citando Anthony Atkielski : > > > I've noticed this, too. Some accounts have a DES password, others have > > an > > MD5 password. > > > > I just changed the password on one of my user accounts with the passwd > > command, and it changed from a DES password to a MD5 password. > > > > My impression is that different programs use different encryption > > methods > > for the password, with some using DES, and others use MD5. True? > > > > ----- Original Message ----- > > From: "Daniel Leal" > > To: > > Sent: Sunday, December 09, 2001 16:02 > > Subject: encryption and master.passwd > > > > > > > Hi! > > > > > > To learn a little bit of the freebsd security I decided to read the > > > charpter 8 of the freebsd handbook. Soon I realize that passwords > > encrypted > > > with the MD5 hash are longer than those encrypted with the DES hash > > and > > > also begin with the characters $1$ and DES password strings does not > > > include the $ character. > > > So I did "more /etc/master_passwd" and I notice that mine and root's > > > password (I am the one who su to root in that system) are encrypted > > with > > > MD5 but the other users are encrypted with DES!!! > > > > > > Why? > > > Did I do something wrong? > > > How can I change it all to MD5 encryption? > > > > > > In my /etc/login.conf I have the following lines: (install defaults) > > > ... > > > default:\ > > > :passwd_format=md5:\ > > > ... > > > > > > Thanks, daniel > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message