Linuxathome.net    -    Linux news and help for home broadband internet users  
 Home  |  Files  |  Case Mods  |  Reviews  |  Forum  |  Search  |  Links  |  RDF  |  Contact  |  Uptime  |  Server Info  |  Tracker
Sections
 

Installation Guide
Setting Up
Internet Sharing
Port Forwarding
Services Config
Installing Programs
Game Servers
Using IPTables
Useful Commands
Kernel Upgrading
System Recovery
Red Hat 7.2 Setup
OpenBSD Setup
BPA Login Setup
PPPoE Setup
Add New Hardware
Using PPTP VPN
VMware ESX Cmds
Our RC5 Team
Folding@Home
Help Support Us

 
 
Articles
  Linux Security
NetStats FAQ
Linux KIS Trojan
CAT5/LAN Cables
Domain Names
Presario RH Install APC Debian DVD
 
 
Slashdot.org
 
  • Simulators Take the Humans Out of Hiring
  • Google Pulls Support For CDMA Devices
  • Finding Lost Recording From the 1880s
  • India Turns Down American Fighter Jets, Buys From France
  • New Hampshire Passes 'Open Source Bill'
  • Text Message Brands Quebec Man a Terror Suspect
  • Apple Overturns Motorola's German iPad and iPhone Sales Bans
  • LibreOffice Developer Community Increasingly Robust
  • Canada's Massive Public Traffic Surveillance System
  • German Government Endorses Chrome As Most Secure Browser
  • Milky Way Magnetic Fields Charted
  • New Book Helps You Start Contributing To Open Source
  • $100,000 Prize: Prove Quantum Computers Impossible
  • President By Day, High-Tech Headhunter By Night
  • You Will Never Kill Piracy
  •  
     
    Affiliates

    TweakTown.com
    ZGeek.com
    pebkac-consulting.com.au

     
     
    Webmail
      E-mail Address:

    Password:


     

      Random Password Generator

     

    This is just a quick cgi script that was written to enable people to generate random passwords. This is done via the application mkpasswd that is available with Red Hat based systems. It is very simple to use and can be used for many different applications, such as just supplying it for users on your site or you can use it to assign a random password to someones account with some simple modifications. Below is the source code for the cgi file, just paste it into a file called randpass.cgi in your /cgi-bin/ directory and chmod 755 it.

    #!/bin/csh -f
    #
    # Random Password Generator 1.0
    # Copyright (c) 2001, linuxathome.net All Rights Reserved
    # Designed and Coded by Martin (a.k.a. Mayhem)
    #
    # Latest Information: http://www.linuxathome.net/

    # Run the 'mkpasswd' command to get the generated password
    set genpass = `mkpasswd`;

    # Display output in HTML format
    echo "Content-type:text/html\n"
    echo "<HTML>"
    echo " <HEAD>"
    echo " <TITLE>Random Password Generator</TITLE>"
    echo " </HEAD>"
    echo " <BODY BGCOLOR=#FFFFFF>"
    echo " <CENTER>"
    echo " <FONT FACE=ARIAL><P>"
    echo " <B>Your Random Password is:</B> $genpass "
    echo " </FONT></P>"
    echo " <FONT FACE=ARIAL SIZE=2 COLOR=#CCCCCC>"
    echo " Copyright © 2001 www.linuxathome.net, All Rights Reserved."
    echo " </FONT>"
    echo " </CENTER>"
    echo " </BODY>"
    echo "</HTML>"

    The script will output something like this (you may cutomise it as you see fit):

    Proudly Hosted By:
    Hosted by PEBKAC Consulting

    Please read our Legal Notice for information concerning our site and its content.
    All logos and trademarks in this site are property of their respective owner. All the rest © 2000 - 2009 by Linuxathome.net

    Reviews
     

    D-Link DI-704P
    VIA EPIA-M 9000
    Tux Applique
    Ricoh MP5125A
    AMD XP 2600+
    3DProphet 9000Pro
    Radeon 9700 Pro
    XTNDAccess IrDA
    Netgear FS-524s
    DSR2161 KVM
    Game TheaterXP & XPS-510 Speakers
    3D Prophet 4000XT
    AutoView 400
    Back-UPS CS 350
    Dual Neon Kit
    SwitchView KVM
    20x4 LCD Kit
    Window Kit

     
     
    Kuro5hin.org
     
  • 4A
  • What the Clark County, WA courts should know about K5.
  • kuro5hin's Membership Fees Are a Good Thing
  • Jetset Psychopath Pleads Guilty
  • Fuck the Fat Acceptance Movement
  • Is crawl-66-249-71-82.googlebot.com Trying to Root Your PHP Board? (Abridged)
  • K5 Images of the Year (2011)
  • cancel
  • I support SOPA
  • The Open Proxy Party's Electoral Corruption Killer
  •  
     
    Google (Linux)
     
    Enter Keywords:

     
     
    Bash Jokes
     

    % ar x "my love life"

    ar: my love life does not exist

     
     
    Virtualization, Virtual Machine & Virtual Server Consolidation - VMware

    The Community ENTerprise Operating System

    Get Slackware Linux

    Use OpenOffice.org

    Use Asterisk