[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandrake-cooker
Subject:    [Cooker] new script for rpm-helper
From:       Guillaume Rousse <rousse () ccr ! jussieu ! fr>
Date:       2004-03-31 22:13:10
Message-ID: 406B4276.8000104 () ccr ! jussieu ! fr
[Download RAW message or body]

The following script allows rpm to easily generate random password 
during install. Please include it in rpm-helper.
-- 
The remaining work to finish in order to reach your goal increases as 
the deadline approaches
		-- Murphy's Laws of Computation n°1

["gen-password" (text/plain)]

#!/bin/sh
#---------------------------------------------------------------
# Project         : Mandrake Linux
# Module          : rpm-helper
# File            : gen-password
# Version         : $Id: del-user,v 1.1.1.1 2002/07/09 15:04:21 flepied Exp $
# Author          : Guillaume Rousse
# Created On      : Thu Apr  1 00:00:46 2004
# Purpose         : helper script for rpm scriptlets to generate
#		    a random password
#---------------------------------------------------------------

if [ -n "$1" ]; then
    length=$1
else
    length=8
fi

perl -e "print map { (a..z,A..Z,0..9)[rand 62] } 0..$length"

# gen-password ends here


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic