From owner-freebsd-questions Wed Mar 8 14: 4:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from asmodeus.diabolis.net (209-6-187-14.c6-0.wth-ubr1.sbo-wth.ma.cable.rcn.com [209.6.187.14]) by hub.freebsd.org (Postfix) with ESMTP id 7B61237B663 for ; Wed, 8 Mar 2000 14:04:38 -0800 (PST) (envelope-from bunicula@rcn.com) Received: from asmodeus (asmodeus [192.168.2.6]) by asmodeus.diabolis.net (8.9.3/8.9.3) with ESMTP id RAA18993; Wed, 8 Mar 2000 17:00:21 -0500 (EST) (envelope-from bunicula@rcn.com) Date: Wed, 8 Mar 2000 17:00:21 -0500 (EST) From: Brian Anderson X-Sender: bunicula@asmodeus.diabolis.net To: Danny Cc: Justin Boss , freebsd-questions@FreeBSD.ORG Subject: Re: backing up user names and groops In-Reply-To: <00031008531605.00345@freebsd.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 10 Mar 2000, Danny wrote: > But instead of copying it over with "cp" dont you meant to use the "Cat" > command like so:- > > cat old.master.passwd >> /etc/master.passwd > why? cp has worked fine for me... mv /etc/master.passwd /etc/master.passwd.bak cp othermaster.passwd master.passwd i am going on the assumption that this is a new system, and users are being migrated to it... so preserving the existing users wouldn't be an issue... if you wanted to preserve the existing users, you'd cat >> the file, then have to use vipw to clean up duplicate entries (or just edit the master.passwd from the other machine before appending it. brian Looking forward to your feedback. > > dannyh > > dannyh@idx.com.au > > On Thu, 09 Mar 2000, Brian Anderson wrote: > > On Wed, 8 Mar 2000, Justin Boss wrote: > > > > > I was wondering if there is a way to backup all user and group. I'm bring up > > > a new server and I tared the user directories but UID# is different when I > > > add the user back. So then I have to change the owner. Is there files that I > > > can just bring over form the old server? > > > > > > > > user data is in /etc/master.passwd > > group data /etc/group > > > > those files can be copied from one system to another, and will get your > > user accounts moved over. when you copy master.passwd, make sure to > > rebuild your user database (man pwd_mkdb) > > > > > > brian > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > -- > -- -------'---,---'--- bunicula@rcn.com ---,---'---,------- AAAAIIIIIIIIEEEEE! Evil... Bright... Yellow... Thing...!! That must be the Daystar. I've heard talk about it. User Friendly, 12/8/1999 --'--,--'--,-- http://diabolis.net --'--,--'--,-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message