CentOS 7.x mkpasswd

From Notes_Wiki
Revision as of 09:34, 25 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > Security Tools > 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/



Home > CentOS > CentOS 7.x > Security Tools > CentOS 7.x mkpasswd