From owner-freebsd-questions@FreeBSD.ORG Tue Jan 22 07:17:24 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35E2016A41A for ; Tue, 22 Jan 2008 07:17:24 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 8304613C4FA for ; Tue, 22 Jan 2008 07:17:23 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id m0M7HLx9000366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Jan 2008 14:17:21 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.6/8.12.11) id m0M7HLjR049208; Tue, 22 Jan 2008 14:17:21 +0700 (ICT) Date: Tue, 22 Jan 2008 14:17:21 +0700 (ICT) Message-Id: <200801220717.m0M7HLjR049208@banyan.cs.ait.ac.th> From: Olivier Nicole To: teklimbu@wlink.com.np In-reply-to: <47958F26.3030704@wlink.com.np> (message from Tek Bahadur Limbu on Tue, 22 Jan 2008 12:22:26 +0545) References: <47958F26.3030704@wlink.com.np> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: questions@freebsd.org Subject: Re: Need to re-generate the passwords in /etc/passwd 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: Tue, 22 Jan 2008 07:17:24 -0000 > Due to some security purposes, I need to re-generate all the passwords > for my users from the file /etc/passwd. I use the following script to generate passwords: http://www.cs.ait.ac.th/cgi-bin/phi-soft/gen-multipasswd I could send it to you as Perl script, so you could generate 500 passwords in one run, or you call the web page enough number of times. The password is generated as a psuedo Markov chain on probability based on some pieces of English text (FreeBSD man pages). It adds at least 2 numbers, one non alpha-numerical sign and turns some letters into uppercase. At first the passwords were very English like "words", now it is more confusing. non-alpha-numerical characters are choosen to avoid conflicts with the softwares I am using it: samba, FreeBSD login, MySQL... Best regards, Olivier