Minimum Password Length on Linux accounts


By default, the minimum password length under CentOS is set to 6 characters.

Edit /etc/login.defs

Set PASS_MIN_LEN to whatever length you want

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!