Fedora – How to bypass Fedora’s password complexity requirments

fedorapampasswd

On a fresh install of Fedora 19 I am attempting to change the password to something simple, like Password01 (this is just a simple testing VM, nothing fancy), but the password complexity requirements prevent me from setting anything easy to remember.

How can I bypass the complexity requirements or disable them?

the contents of /etc/pam.d/passwd:

#%PAM-1.0
auth       include  system-auth
account    include  system-auth
password   substack system-auth
-password   optional    pam_gnome_keyring.so use_authtok
password   substack postlogin

Even as root I cannot bypass the requirements:

enter image description here

justincase@localhost ~ $ sudo -s
[sudo] password for justincase: 
[root@localhost justincase]# passwd justincase
Changing password for user justincase.
New password: 
BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word
Retype new password: 
[root@localhost justincase]# 

Best Answer

As root you can bypass the requirements. Your example shows this happening:

# passwd justincase
Changing password for user justincase.
New password:
BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word
Retype new password:
#

Notice it does not repeat the New password prompt but instead it asks you to retype the (bad) new password you are entering. If you had continued with the alleged bad password you would have been able to set it as the password for justincase.

Related Question