From owner-freebsd-questions Thu Jun 6 7: 1:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx.ant.uni-bremen.de (mx.ant.uni-bremen.de [134.102.176.242]) by hub.freebsd.org (Postfix) with ESMTP id C958E37B406 for ; Thu, 6 Jun 2002 07:01:29 -0700 (PDT) Received: from taipeh.ant.uni-bremen.de ([134.102.176.3] helo=ant.uni-bremen.de) by antsrv1.ant.uni-bremen.de with esmtp (Exim 3.34 #1) id 17FxpM-0006fk-00; Thu, 06 Jun 2002 16:01:24 +0200 Message-ID: <3CFF6B40.6070205@ant.uni-bremen.de> Date: Thu, 06 Jun 2002 16:01:36 +0200 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Heinrich Rebehn Cc: Axel Scheepers , questions@freebsd.org Subject: Re: How to transfer passwd data from NIS-Server to local References: <3CFF446D.9040905@ant.uni-bremen.de> <20020606140742.D67863@mars.thuis> <3CFF54B8.6080505@ant.uni-bremen.de> <20020606143404.H67863@mars.thuis> <3CFF5D7F.4060300@ant.uni-bremen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Heinrich Rebehn wrote: > Axel Scheepers wrote: > >> Perl? Awk? Shouldn't be too hard to write something which parses it >> and writes >> it out to a temp master.passwd. Then pwd_mkdb can check that file and >> import it, >> check man pwd_mkdb for details. >> >> Gr, > > > Just want to be 100% sure: > > Does pwd_mkdb *overwrite* the existing passwd database or *update/merge* > the supplied input with the existing passwd database? > Ok, here's what i did: On the NIS+ server: niscat passwd|awk -F: \ '{print $1":"$2":"$3":"$4":des_users:0:0:"$5":"$6":"$7}' > master.nis On the FreeBSD machine: removed system accounts from master.nis # cat /etc/master.passwd master.nis > new.passwd removed +:::: entry in new.passwd # pw_mkdb new.passwd In /etc/login.conf i uncommented the entry "des_users" because the nis passwords are in des format. Now we can login without the nis server, but i still have to take care of groups. Heinrich To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message