0

How to automatically generate password in linux

How to generate random pasword mostly encrypted, through some advanced commands or by using tools.

Generate random password Linux Add a comment
lucas
asked Apr 27 2017

Answer

0

For that there is a command called mkpasswd. Each time when the command is executed, it will generate the password with 9 characters as default.

To generate the long password, open the command execution file and edit as follows.

# vim /usr/bin/mkpasswd 
      set length 15

Now when you give mkpasswd command, it will generate with length of 15 characters.

Add a comment
jagannatharumugam
asked May 01 2017
edited Oct 05 2018
Post your Answer