Technology Weblog

Generating Random passwords using mkpasswd utility

We can generate random passwords using mkpasswd utility


By default mkpasswd generates alpha-numeric passwords of length 9 with one special character. We can define length using -l option and special characters using option -s. Some times special characters in password may cause problems.

#mkpasswd -l 8 -s 0

The above command creates a random password of length 8 with 0 special characters.


One Response to “Generating Random passwords using mkpasswd utility”

  1. vaooow
    i liked it
    but did u copy past?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: