Date: Thu, 31 Aug 2000 12:41:10 -0500 (CDT) From: mark tinguely <tinguely@hookie.cs.ndsu.NoDak.edu> To: mcrogerm@stjohn.ac.th, questions@FreeBSD.ORG Subject: Re: Moving /home to a new hard drive Message-ID: <200008311741.MAA23429@hookie.cs.ndsu.NoDak.edu> In-Reply-To: <3.0.6.32.20000831122719.00874c20@stjohn.stjohn.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
I can't tell is you used the new drive for the whole system or used the new drive for the home directories and mounted it at /home. If you just up-sized the whole system and install 4.1 on it, do you still have the /etc/ directory on the old drive? if so copy the /etc/master.passwd file from the old drive onto the /etc of the new. then, as root, type: $ vipw an editor will launch, delete and put back the "r" in "root" so the editor recognizes a modification took place and save and exit the editor. vipw will build the database and old compatible /etc/passwd. If you used DES encryption before the upgrade, be sure to install the crypto files before you copy over the new password file because the root account may be encrypted with DES. if you are asking how the change the directories in the password file because you moved the home directories from /usr/home to /home, then use sed or an editor command (like 1,.s/usr\/home/\/home/ in vi) and do the above trick. leave a symbolic link in /usr/home to /home in case someone hard coded their directory location in /usr/home. --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?200008311741.MAA23429>