From owner-freebsd-questions@FreeBSD.ORG Thu Jan 31 15:04:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7367C16A46E for ; Thu, 31 Jan 2008 15:04:21 +0000 (UTC) (envelope-from dangkm@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.226]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF8B13C4F8 for ; Thu, 31 Jan 2008 15:04:20 +0000 (UTC) (envelope-from dangkm@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so745742qbd.7 for ; Thu, 31 Jan 2008 07:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=F6tYjMBAHExYqFGlcEb7n7JhKxwWjzRHmLJ09eKMPUA=; b=B2/x6KnI4lZLhMpAGTH1zkPPAgrfpVtTs3uJW9mSWrNd9wUSK5CLgviU0DmcIk26xKBUZnaAvLGrMDbDur5hll9tuFnMDPkuIqXFIUnxfrHItn+NlQBtppeetvSzdTRim4sDmX1czpW9+1EZFEHGoo1V4VAJNTtTD2bx9CE/iSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=f9mqaAuxxobilYiK+bYrSv4/Mvx4cyBbFUSjXz4B0ycLBhIGBKM04dXhYpLOsg5wkcZXQRBIx8NUkJeJ7jZ/zGbJyBRdruder+knm2vGy+6Kwm8kI52hpT51Dk+XCnuNc51z4hbTqj0aemZUkKsODtpaqKy5tzuAUEK/mNkx3Mk= Received: by 10.67.19.17 with SMTP id w17mr4178252ugi.33.1201791859696; Thu, 31 Jan 2008 07:04:19 -0800 (PST) Received: from myCompaq.inf.ed.ac.uk ( [129.215.37.178]) by mx.google.com with ESMTPS id 27sm8361994ugp.19.2008.01.31.07.04.18 (version=SSLv3 cipher=RC4-MD5); Thu, 31 Jan 2008 07:04:18 -0800 (PST) Message-ID: <47A1E373.7000906@gmail.com> Date: Thu, 31 Jan 2008 15:04:19 +0000 From: Kemian Dang User-Agent: Thunderbird 2.0.0.9 (X11/20080128) MIME-Version: 1.0 To: Sean Murphy References: <47A0CA04.7060100@calarts.edu> In-Reply-To: <47A0CA04.7060100@calarts.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Password file migration help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 15:04:21 -0000 Sean Murphy 写道: > I have a FreeBSD 5.4 system and would like to migrate users in the > password file with UIDs 3000 through 5000 to a FreeBSD 6.3 system on a > running on a separate box. Is there a way to export just those users? > > Thanks > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" awk -F: '{if($4 > 3000) if($4 < 5000) print $0}' /etc/master.passwd You should do it as root.