Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 1999 21:15:02 -0700 (PDT)
From:      Vincent Poy <vince@venus.GAIANET.NET>
To:        cjclark@home.com
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: FreeBSD 3.3-RELEASE passwd issue
Message-ID:  <Pine.BSF.4.05.9910222113070.5072-100000@venus.GAIANET.NET>
In-Reply-To: <199910230414.AAA34594@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 23 Oct 1999, Crist J. Clark wrote:

> 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);
> .
> .
> .

	Okay, guess I do have it reverse.

> > 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?

	This is what it shows:

lrwxrwxrwx  1 root  wheel  13 Oct 21 16:37 /usr/lib/libcrypt.a ->
libdescrypt.a
lrwxrwxrwx  1 root  wheel  14 Oct 21 16:37 /usr/lib/libcrypt.so ->
libdescrypt.so
lrwxrwxrwx  1 root  wheel  16 Oct 21 16:37 /usr/lib/libcrypt.so.2 ->
libdescrypt.so.2
lrwxrwxrwx  1 root  wheel  15 Oct 21 16:37 /usr/lib/libcrypt_p.a ->
libdescrypt_p.a

	Seems for some reason, unless I go into vipw and delete the entire
password, the passwd program will just write MD5 instead of DES since it
had the $ before it.


Cheers,
Vince - vince@MCESTATE.COM - vince@GAIANET.NET           ________   __ ____ 
Unix Networking Operations - FreeBSD-Real Unix for Free / / / / |  / |[__  ]
GaiaNet Corporation - M & C Estate                     / / / /  | /  | __] ]  
Beverly Hills, California USA 90210                   / / / / / |/ / | __] ]
HongKong Stars/Gravis UltraSound Mailing Lists Admin /_/_/_/_/|___/|_|[____]




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?Pine.BSF.4.05.9910222113070.5072-100000>