From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 11:54:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ABF016A41F; Fri, 14 Oct 2005 11:54:27 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id E541B43D46; Fri, 14 Oct 2005 11:54:26 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms071.mailsrvcs.net ([192.168.1.4]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IOC004WEMEQOP24@vms046.mailsrvcs.net>; Fri, 14 Oct 2005 06:54:26 -0500 (CDT) Date: Fri, 14 Oct 2005 06:54:26 -0500 (CDT) From: Sergey Babkin To: Robert Watson , iwan@staff.usd.ac.id Message-id: <21965586.1129290866618.JavaMail.root@vms071.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailman-Approved-At: Fri, 14 Oct 2005 12:21:20 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 11:54:27 -0000 >On Fri, 14 Oct 2005 iwan@staff.usd.ac.id wrote: > >> I want to migrate from linux to freebsd. My linux box (mail server) have >> alot of user (hundreds) --this is the problem. I dont know which file >> which the password's file. I dont want typing user name and its password >> one by one. Beside of that, thereis possibly my users change their >> passwords. How can I do this migrating ? (save) I'm sorry my English is >> not good. > >The main man page you want to look at is passwd(5), which documents the >formats of the /etc/master.passwd and /etc/passwd file. In FreeBSD, the >master.passwd file is the equivilent of the shadow file in Linux. What >you want to do is convert the Linux password files to the master.passwd >file in FreeBSD, and then run Historically the problem has been that FreeBSD used its own MD5 algorithm for encrypting the passwords which was incompatible with any other Unix, so just copying the password field to FreeBSD did not work. I don't know if it's fixed now or not. The reason for that was in the US cryptography export regulations, and those have been improved in the last few years. In any case, even if it's not directly supported then probably a PAM module can still be written. Hm, considering the we'd like people to migrate from Linux to FreeBSD, having such a conversion script/program (especially if someone writes it for their own use anyway) in the base system would make a lot of sense. -SB