From owner-freebsd-questions@FreeBSD.ORG Tue Jan 22 08:32:51 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 BF4AF16A418 for ; Tue, 22 Jan 2008 08:32:51 +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 AE9AF13C467 for ; Tue, 22 Jan 2008 08:32:49 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: (qmail 25555 invoked from network); 22 Jan 2008 08:32:46 -0000 Received: from unknown (HELO smtp2.wlink.com.np) (202.79.32.49) by 0 with SMTP; 22 Jan 2008 08:32:46 -0000 Received: (qmail 60490 invoked by uid 98); 22 Jan 2008 08:32:46 -0000 Received: from 202.79.36.7 by smtp2.wlink.com.np (envelope-from , uid 1010) with qmail-scanner-1.25 (clamdscan: 0.90.3/3492. Clear:RC:1(202.79.36.7):. Processed in 0.039689 secs); 22 Jan 2008 08:32:46 -0000 X-Qmail-Scanner-Mail-From: teklimbu@wlink.com.np via smtp2.wlink.com.np X-Qmail-Scanner: 1.25 (Clear:RC:1(202.79.36.7):. Processed in 0.039689 secs) Received: from [202.79.36.7] (HELO [202.79.36.7]) by smtp2.wlink.com.np (qmail-smtpd) with SMTP; 22 Jan 2008 08:32:30 -0000 (Tue, 22 Jan 2008 14:17:30 +0545) Message-ID: <4795A9F2.9090204@wlink.com.np> Date: Tue, 22 Jan 2008 14:16:46 +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> <47959B51.8030405@wlink.com.np> <200801220740.m0M7e73W049416@banyan.cs.ait.ac.th> In-Reply-To: <200801220740.m0M7e73W049416@banyan.cs.ait.ac.th> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Check-By: smtp2.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 08:32:51 -0000 Hi Oliver, Olivier Nicole wrote: >> How do I use the above script for my machine which I access remotely by SSH. > > Yuck. I could email you a list of 1000 random strings? > >>> 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. > > No, the script only generates random strings, you would have to apply > these strings to the accounts. > > The idea would be to make a file with a list of user name and new > password, then use this file to feed to a script that force the new > password. > > You have to keep that file in clear text, there is no way you can > retreive the new opassword after you have applied it to a user > account. Ok I get it. I will follow it up according to your methods. Thanks. > > > Bests, > > 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