Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2000 17:00:21 -0500 (EST)
From:      Brian Anderson <bunicula@rcn.com>
To:        Danny <dannyh@idx.com.au>
Cc:        Justin Boss <jboss@hotmail.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: backing up user names and groops
Message-ID:  <Pine.BSF.4.21.0003081655050.18258-100000@asmodeus.diabolis.net>
In-Reply-To: <00031008531605.00345@freebsd.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003081655050.18258-100000>