From owner-freebsd-questions@FreeBSD.ORG Tue Jan 22 07:30:31 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 82DCC16A417 for ; Tue, 22 Jan 2008 07:30:31 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: from smtp5.wlink.com.np (smtp5.wlink.com.np [202.79.32.52]) by mx1.freebsd.org (Postfix) with SMTP id 781BC13C459 for ; Tue, 22 Jan 2008 07:30:28 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: (qmail 9327 invoked from network); 22 Jan 2008 07:30:23 -0000 Received: from unknown (HELO smtp1.wlink.com.np) (202.79.32.76) by 0 with SMTP; 22 Jan 2008 07:30:23 -0000 Received: (qmail 92636 invoked by uid 98); 22 Jan 2008 07:30:23 -0000 Received: from 202.79.36.7 by smtp1.wlink.com.np (envelope-from , uid 1009) with qmail-scanner-1.25 (clamdscan: 0.88.4/2205. Clear:RC:1(202.79.36.7):. Processed in 0.041677 secs); 22 Jan 2008 07:30:23 -0000 X-Qmail-Scanner-Mail-From: teklimbu@wlink.com.np via smtp1.wlink.com.np X-Qmail-Scanner: 1.25 (Clear:RC:1(202.79.36.7):. Processed in 0.041677 secs) Received: from [202.79.36.7] (HELO [202.79.36.7]) by smtp1.wlink.com.np (qmail-smtpd) with SMTP; 22 Jan 2008 07:30:13 -0000 (Tue, 22 Jan 2008 13:15:13 +0545) Message-ID: <47959B51.8030405@wlink.com.np> Date: Tue, 22 Jan 2008 13:14:21 +0545 From: Tek Bahadur Limbu User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Olivier Nicole References: <47958F26.3030704@wlink.com.np> <200801220717.m0M7HLjR049208@banyan.cs.ait.ac.th> In-Reply-To: <200801220717.m0M7HLjR049208@banyan.cs.ait.ac.th> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Check-By: smtp1.wlink.com.np Spam: No ; 0.2 / 8.0 X-Spam-Status-WL: No, hits=0.2 required=5 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:30:31 -0000 Hi Oliver, Olivier Nicole wrote: >> 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 How do I use the above script for my machine which I access remotely by SSH. > > 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. That will be great! So I just run the script against /etc/passwd and presto, all the users in that file will be generated new passwords. I will need a way to pass the newly generated passwords to individuals users. > > 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... Sounds great! Thanks alot > > Best regards, > > Olivier > > > > -- With best regards and good wishes, Yours sincerely, Tek Bahadur Limbu System Administrator (TAG/TDG Group) Jwl Systems Department Worldlink Communications Pvt. Ltd. Jawalakhel, Nepal http://www.wlink.com.np http://teklimbu.wordpress.com