Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Apr 2000 08:52:01 -0500 (CDT)
From:      Mark Tinguely <tinguely@plains.NoDak.edu>
To:        smyru@eko.wroc.pl
Cc:        freebsd-questions@freebsd.org
Subject:   Re: moving with dump and restore
Message-ID:  <200004171352.IAA32493@plains.NoDak.edu>

next in thread | raw e-mail | index | archive | help
>  Monday, April 17, 2000, 3:30:39 AM, I got:
>
>  > Are you trying to boot from wd0 or wd2?
>  yes, but I already fixed it.
>
>  I was succesful with dump|restore. But I cannot
>  log in to the system after switching disks nor as
>  root nor as any other user. Is that caused by not
>  proper password base copying? Is there any special
>  way to do it?


dump | restore should move all the files that you need, provided
there weren't symbolic links already on that partition before you
do the restore. (in other words restore would overwrite an existing
symbolic link).

but to be safe, check which crypt library you are using:

	ls -l /usr/lib/libcrypt.so

it should say either:

	lrwxrwxrwx  [deletes]  /usr/lib/libcrypt.so@ -> libdescrypt.so

or

	lrwxrwxrwx  [deletes]  /usr/lib/libcrypt.so@ -> libscrypt.so

the DES library will properly cyrpts/decyrpt DES and MD5 encrypted passwords,
and the S library crypts/decyrpts only the MD5 passwords. Check your password
file, /etc/master.passwd, if all the passwords start with "$1", then you use
MD5 ecryption.


Second possiblity is that for some reason the master passwrd database,
in /etc/spwd.db was not correctly created. As root, execute:

	# pwd_mkdb -p /etc/master.passwd

--mark tinguely.



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?200004171352.IAA32493>