Generate random passwords under GNU/Linux...

Body

Well, I want to generate random passwords for people I give subdomains.

Since creating the subdomain involves a lot of steps, I decided to automate it a bit.

And since I only install the most needed things on the server, I decided to create a small script to generate the random password for me as I don't feel like installing a password generator.

dd if=/dev/random count=10 bs=1 | hexdump  | cut -d \  -f 2-| head -n 1 | tr -d " "

Now the only 2 problems with the above script are:
1) No upper case letters.
2) No special characters.

I don't really think that the above problems are fatal since the user will change the password after that to something stupid, Why ? Because users are idiots, They are not as smart as me ;-)

Add new comment

The content of this field is kept private and will not be shown publicly.