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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb self="mkpasswd">CentOS_7.x_Security_Tools|Security Tools</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Security Tools|Security Tools]] > [[CentOS 7.x mkpasswd]]
=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.
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.
Line 17: Line 16:


Refer: https://www.makeuseof.com/tag/5-ways-generate-secure-passwords-linux/
Refer: https://www.makeuseof.com/tag/5-ways-generate-secure-passwords-linux/
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Security Tools|Security Tools]] > [[CentOS 7.x mkpasswd]]

Latest revision as of 09:34, 25 August 2022

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