Difference between revisions of "disabling password strength checking via passwdqc"

From thelinuxwiki
Jump to: navigation, search
(Created page with " == Problem Description: == later versions of gentoo enforce password security requiring a minimum of 11 characters. this solution is for those who wish to disable this featu...")
 
 
Line 4: Line 4:
 
example:
 
example:
 
  (none) /etc/skel/.ssh # passwd root                     
 
  (none) /etc/skel/.ssh # passwd root                     
  <br>
+
   
 
  You can now choose the new password or passphrase.
 
  You can now choose the new password or passphrase.
  <br>
+
   
 
  A valid password should be a mix of upper and lower case letters, digits, and
 
  A valid password should be a mix of upper and lower case letters, digits, and
 
  other characters.  You can use a password containing at least 7 characters
 
  other characters.  You can use a password containing at least 7 characters
Line 13: Line 13:
 
  An upper case letter that begins the password and a digit that ends it do not
 
  An upper case letter that begins the password and a digit that ends it do not
 
  count towards the number of character classes used.
 
  count towards the number of character classes used.
  <br>
+
   
 
  A passphrase should be of at least 3 words, 11 to 72 characters long, and
 
  A passphrase should be of at least 3 words, 11 to 72 characters long, and
 
  contain enough different characters.
 
  contain enough different characters.
  <br>
+
   
 
  Alternatively, if no one else can see your terminal now, you can pick this as
 
  Alternatively, if no one else can see your terminal now, you can pick this as
 
  your password: "axiom3Ground8terror".
 
  your password: "axiom3Ground8terror".
  <br>
+
   
 
  Enter new password:  
 
  Enter new password:  
 
  '''Weak password: too short.'''
 
  '''Weak password: too short.'''
Line 34: Line 34:
 
  enforce=none
 
  enforce=none
  
there is not need to restart or reload any process. you will continue to receive the message...
+
there is not need to restart or reload any process. you will continue to receive the message "passphrase should be of at least 3 words, 11 to 72 characters long",
passphrase should be of at least 3 words, 11 to 72 characters long
+
 
but it will not be enforced and you can set a shorter password without receiving the error "too short".
 
but it will not be enforced and you can set a shorter password without receiving the error "too short".
  
 
[[category:gentoo]]
 
[[category:gentoo]]

Latest revision as of 14:50, 15 May 2023

Problem Description:

later versions of gentoo enforce password security requiring a minimum of 11 characters. this solution is for those who wish to disable this feature.

example:

(none) /etc/skel/.ssh # passwd root                    

You can now choose the new password or passphrase.

A valid password should be a mix of upper and lower case letters, digits, and
other characters.  You can use a password containing at least 7 characters
from all of these classes, or a password containing at least 8 characters
from just 3 of these 4 classes.
An upper case letter that begins the password and a digit that ends it do not
count towards the number of character classes used.

A passphrase should be of at least 3 words, 11 to 72 characters long, and
contain enough different characters.

Alternatively, if no one else can see your terminal now, you can pick this as
your password: "axiom3Ground8terror".

Enter new password: 
Weak password: too short.

Error:

too short

Solution:

edit config file /etc/security/passwdqc.conf

change the line...

enforce=everyone

to...

enforce=none

there is not need to restart or reload any process. you will continue to receive the message "passphrase should be of at least 3 words, 11 to 72 characters long", but it will not be enforced and you can set a shorter password without receiving the error "too short".