Date: Wed, 24 Mar 1999 15:10:28 -0500 (EST) From: Thomas David Rivers <rivers@dignus.com> To: freebsd-questions@FreeBSD.ORG, seth@pchelp.net Subject: Re: Moving users to a second server Message-ID: <199903242010.PAA72416@lakes.dignus.com> In-Reply-To: <C1B7E8F13F6ED21193110000C026866907C82D@jade.pchelp.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hello all, > > I have one FreeBSD 2.2.6 server with about 300+ users, each user has a > /home/user directory. > What is the easiest way to replicated the users and directories to a > second new FreeBSD 3.1 server? > > Would a script file reading the /etc/master.passwd file then using > "adduser (parameters)" work? > If so...anyone have a sample script. > Thanks, Actually, this is what I do: On the new machine: vipw Read the old /etc/master.passwd from the old machine. Edit out duplicate entries (like "root", "toor", "uucp", etc...) *poof* - you're done. This assumes you're using the same encryption scheme on both machines. The result is that every has the same passwords they had before, the same UID, GID, etc... Then, you simply need to copy all the /home/user directories to the new machine & you're finished. - Dave Rivers - 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?199903242010.PAA72416>