Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2001 18:25:29 -0700
From:      Matt Harrington <matt@ucsd.EDU>
To:        freebsd-questions@freebsd.org
Subject:   vipw fails on DES passwords *URGENT*
Message-ID:  <000b01c0f215$685db2e0$3201a8c0@cosmo>

next in thread | raw e-mail | index | archive | help


I have an /etc/passwd file from another UNIX system which uses DES
passwords.  My /etc/passwd on FreeBSD appears to use MD5 passwords, but I
did make changes in /usr/lib to allow DES passwords to be recognized by NIS.
(Basically, I'm getting rid of NIS and want to merge the password file from
my old NIS master server into my FreeBSD's passwd file.)  I also made the
proper change to /etc/login.conf.  What else do I need to do?  Can't "vipw"
process DES passwords?  I've appended the output from "vipw", info about my
libcrypt links in /usr/lib, and an excerpt from /etc/login.conf.

Any quick responses would be greatly appreciated.  I'm in a maintenance
window right now and would like to get this done before my users sign on in
the morning.  please excuse the obnoxious "*URGENT*" bit in the Subject.  :)

---Matt


"vipw" fails with this error:

vipw: rebuilding the database...
pwd_mkdb: corrupted entry
pwd_mkdb: at line #30
pwd_mkdb: /etc/pw.O42780: Inappropriate file type or format
re-edit the password file? [y]:

line #30 is the beginning of the file i read in.

Here's what I have in /usr/lib:

msg# ls -l *crypt*
lrwxr-xr-x  1 root  wheel       13 Nov 28  2000 libcrypt.a -> libdescrypt.a
lrwxr-xr-x  1 root  wheel       14 Nov 28  2000 libcrypt.so ->
libdescrypt.so
lrwxr-xr-x  1 root  wheel       16 Nov 28  2000 libcrypt.so.2 ->
libdescrypt.so.2
lrwxr-xr-x  1 root  wheel       15 Nov  2  2000 libcrypt_p.a ->
libdescrypt_p.a
-r--r--r--  1 root  wheel  1259976 Nov 28  2000 libcrypto.a
lrwxr-xr-x  1 root  wheel       14 Nov 28  2000 libcrypto.so ->
libcrypto.so.1
-r--r--r--  1 root  wheel   782240 Nov 28  2000 libcrypto.so.1
-r--r--r--  1 root  wheel  1173232 Jul 28  2000 libcrypto_p.a
-r--r--r--  1 root  wheel    16250 Nov 28  2000 libdescrypt.a
lrwxr-xr-x  1 root  wheel       16 Nov 28  2000 libdescrypt.so ->
libdescrypt.so.2
-r--r--r--  1 root  wheel    11712 Nov 28  2000 libdescrypt.so.2
-r--r--r--  1 root  wheel    18224 Nov  2  2000 libdescrypt_p.a
-r--r--r--  1 root  wheel     9382 Nov 28  2000 libscrypt.a
lrwxr-xr-x  1 root  wheel       14 Nov 28  2000 libscrypt.so ->
libscrypt.so.2
-r--r--r--  1 root  wheel     6460 Nov 28  2000 libscrypt.so.2
-r--r--r--  1 root  wheel    10132 Nov  2  2000 libscrypt_p.a

from /etc/login.conf:

default:\
        :passwd_format=des:\
        <snip>




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?000b01c0f215$685db2e0$3201a8c0>