Difference between revisions of "CentOS 7.x mkpasswd"

From Notes_Wiki
(Created page with "<yambe:breadcrumb self="mkpasswd">CentOS_7.x_Security_Tools|Security Tools</yambe:breadcrumb> =CentOS 7.x mkpasswd= mkpasswd can be used to generate random passwords. It is...")
(No difference)

Revision as of 11:09, 27 January 2019

<yambe:breadcrumb self="mkpasswd">CentOS_7.x_Security_Tools|Security Tools</yambe:breadcrumb>

CentOS 7.x mkpasswd

mkpasswd can be used to generate random passwords. It is critical to have different passwords for different services so that if any one of them is compromised, the others are not affected.

To create a sufficiently complex 20 character long password with 4 special characters use:

mkpasswd -l 20 -s 4

To create a simple 6 character long password without any special characters use:

mkpasswd -l 6 -s 0

In case mkpasswd is not available for particular Linux distribution then other tools such as 'apg' can be used.

Refer: https://www.makeuseof.com/tag/5-ways-generate-secure-passwords-linux/