NEVER USE THIS IN A NOT TEST/DEVELOPMENT ENVIRONMENT
$ sudo passwd student
Changing password for user student.
New password:
BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word
You need to change 2 lines.
$ sudo vim /etc/pam.d/system-auth
...
# password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
password sufficient pam_unix.so try_first_pass nullok sha512 shadow
Here is the diff
$ sudo diff /etc/pam.d/system-auth /etc/pam.d/system-auth.ORIG
10,11c10,11
< # password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
< password sufficient pam_unix.so try_first_pass nullok sha512 shadow
---
> password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
> password sufficient pam_unix.so try_first_pass use_authtok nullok sha512 shadow
Now you can set weak password for users.