Technix
Technology Weblog

Generating Random passwords using mkpasswd utility


We can generate random passwords using mkpasswd utility

#mkpasswd
3b&Ao2xzM

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
8ns5pTNr

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

Advertisements

One Response to “Generating Random passwords using mkpasswd utility”

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

    thankss


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: