{"id":27891,"date":"2018-08-23T03:21:50","date_gmt":"2018-08-23T08:21:50","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27891"},"modified":"2022-06-03T03:34:43","modified_gmt":"2022-06-03T08:34:43","slug":"how-to-enforce-password-quality-in-linux","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/","title":{"rendered":"How to Enforce Password Quality in Linux"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27896\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg\" alt=\"How to Enforce Password Quality in Linux\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">One of the easiest ways to improve the security of your server is to ensure that everyone&#8217;s password meets a certain minimum length. There are, of course, other considerations like the mix of small and capital letters, numbers, and special characters. But a minimum password length gives you the most &#8220;bang for the buck&#8221;. Each additional character in a password increases its strength exponentially. In this article, we&#8217;ll show you how to enforce a minimum password length for all your users in Linux.<\/span><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2266bb166e6\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2266bb166e6\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#Step-1-Ensure-that-you-Have-Administrator-Permissions\" >Step 1: Ensure that you Have Administrator Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#Step-2-Checking-the-Existing-Minimum-Length\" >Step 2: Checking the Existing Minimum Length<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#Step-3-Open-the-pwqualityconf-File\" >Step 3: Open the pwquality.conf File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#Step-4-Set-the-Minimum-Password-Length\" >Step 4: Set the Minimum Password Length<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#Step-5-Verify-the-Changes\" >Step 5: Verify the Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#Step-6-Optional-Configure-Other-Password-Parameters\" >Step 6 (Optional): Configure Other Password Parameters<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Ensure-that-you-Have-Administrator-Permissions\"><\/span><span style=\"font-weight: 400;\">Step 1: Ensure that you Have Administrator Permissions<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The changes we&#8217;ll be making require you to either be root or have &#8220;sudo&#8221; permissions. Getting sudo permissions is another discussion altogether. But if you want to switch to root from any other user, just type the following command:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">su - root<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Enter your root password and you&#8217;re good to go. It&#8217;s worth mentioning that performing tasks while logged in as root is almost never a good idea. Get sudo permissions and do what you need to do from there!<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Checking-the-Existing-Minimum-Length\"><\/span><span style=\"font-weight: 400;\">Step 2: Checking the Existing Minimum Length<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">By default, your current password configuration should already have a minimum length set up. For our installation, this is 8 characters. You can check the validity of any password using the following command:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">pwscore<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Hit &#8220;Enter&#8221; and type your password into the blank line that follows. For example:<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-27892 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-in-Linux.jpg\" alt=\"Enforce Password Quality in Linux\" width=\"600\" height=\"204\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-in-Linux.jpg 600w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-in-Linux-150x51.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-in-Linux-300x102.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In the screenshot above, you can see we&#8217;ve entered the password &#8220;1234567&#8221;. This falls short of the minimum password length of 8, so we get an error message informing us. Of course, this password falls short of many other requirements too. But the minimum length is the first to be checked.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Open-the-pwqualityconf-File\"><\/span><span style=\"font-weight: 400;\">Step 3: Open the pwquality.conf File<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">All your password requirements are specified in the following file:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">\/etc\/security\/pwquality.conf<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Along with the minimum length, it allows you to assign various degrees of importance to the characteristics of your password. We&#8217;ll take a look at those a bit later. For now, just open it using a text editor:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">vi \/etc\/security\/pwquality.conf<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Now let&#8217;s set the minimum length<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Set-the-Minimum-Password-Length\"><\/span><span style=\"font-weight: 400;\">Step 4: Set the Minimum Password Length<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In the text editor, scroll down till you see this line:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\"># minlen = 9\r\n<img decoding=\"async\" class=\"alignnone size-full wp-image-27893\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Password-Quality-in-Linux.jpg\" alt=\"Password Quality in Linux\" width=\"600\" height=\"445\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Password-Quality-in-Linux.jpg 600w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Password-Quality-in-Linux-150x111.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Password-Quality-in-Linux-300x223.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/>\r\n<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">To change the minimum length, do these two things:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Remove the hash (#) character from the beginning of the line<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Change the length to your desired length<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Change the following parameters to &#8220;0&#8221; and Remove the hash (#) for them as well<\/span>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">dcredit<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">ucredit<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">lcredit<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">ocredit<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">So if you want the minimum length to be 10, change minlen and the others as shown here:<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-27894\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-Linux.jpg\" alt=\" Enforce Password Quality Linux\" width=\"600\" height=\"431\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-Linux.jpg 600w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-Linux-150x108.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/Enforce-Password-Quality-Linux-300x216.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Save the file.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Verify-the-Changes\"><\/span><span style=\"font-weight: 400;\">Step 5: Verify the Changes<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now when we use the &#8220;pwscore&#8221; command again, the new password length is enforced. Here&#8217;s proof:<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-27895\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-Linux.jpg\" alt=\"How to Enforce Password Quality Linux\" width=\"600\" height=\"208\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-Linux.jpg 600w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-Linux-150x52.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-Linux-300x104.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In this screenshot, we use the password &#8221; qjtdysi7&#8243; &#8211; one more than last time. Since we&#8217;ve set &#8220;minlen&#8221; to 10, the minimum password length is now 9.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Optional-Configure-Other-Password-Parameters\"><\/span><span style=\"font-weight: 400;\">Step 6 (Optional): Configure Other Password Parameters<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In Step 4, we&#8217;ve disabled &#8220;credits&#8221;, which gives passwords points for things like digits, capital letters, and characters different from the previous password. The default for those was &#8220;1&#8221;, which means that each time you use one of these characters, the score is added to the length.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If we omit Step 4, that it allows users to bypass the minimum length by using a mix of characters and digits. So for example, a &#8220;minlen&#8221; of 9 could be overcome by the previous password:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">qjtdysi7<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">While this has only 8 characters, it contains a digit and lowercase alphabets. Which increases the score to 10 and thus meets our password requirements.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can adjust the &#8220;minlen&#8221; parameter to a higher number and give people additional points password complexity. You can set the various credits to a negative number to force that specific amount of characters. Do a &#8220;dcredit&#8221; value of -3 means that the password must have at least 3 digits.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The &#8220;pwquality.conf&#8221; file documents all these parameters, and you can create password rules that are as complex as you like! But here we show you how to get started with a minimum length. You can take it from there!<\/span><\/p>\n<hr \/>\n<p>You don&#8217;t have to enforce\u00a0 password quality on your Linux machine if you are one of our Managed Linux VPS Hosting clients, in which case you can simply ask our technical support to enforce your Linux password for you. They are available 24\/7 and will take care of it asap.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the easiest ways to improve the security of your server is to ensure that everyone&#8217;s password meets a &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Enforce Password Quality in Linux\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#more-27891\" aria-label=\"Read more about How to Enforce Password Quality in Linux\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27896,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1703,21],"tags":[27,32],"class_list":["post-27891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-tips-and-tricks","tag-linux","tag-password","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.7 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Enforce Password Quality in Linux | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Enforce Password Quality in Linux | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enforce Password Quality in Linux\" \/>\n<meta property=\"og:description\" content=\"How to Enforce Password Quality in Linux | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-23T08:21:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:34:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Enforce Password Quality in Linux\",\"datePublished\":\"2018-08-23T08:21:50+00:00\",\"dateModified\":\"2022-06-03T08:34:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/\"},\"wordCount\":719,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/How-to-Enforce-Password-Quality-in-Linux.jpg\",\"keywords\":[\"Linux\",\"Password\"],\"articleSection\":[\"Security\",\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/\",\"name\":\"How to Enforce Password Quality in Linux | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/How-to-Enforce-Password-Quality-in-Linux.jpg\",\"datePublished\":\"2018-08-23T08:21:50+00:00\",\"dateModified\":\"2022-06-03T08:34:43+00:00\",\"description\":\"How to Enforce Password Quality in Linux | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/How-to-Enforce-Password-Quality-in-Linux.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/How-to-Enforce-Password-Quality-in-Linux.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Enforce Password Quality in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enforce-password-quality-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enforce Password Quality in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Enforce Password Quality in Linux | RoseHosting","description":"How to Enforce Password Quality in Linux | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Enforce Password Quality in Linux","og_description":"How to Enforce Password Quality in Linux | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-08-23T08:21:50+00:00","article_modified_time":"2022-06-03T08:34:43+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Enforce Password Quality in Linux","datePublished":"2018-08-23T08:21:50+00:00","dateModified":"2022-06-03T08:34:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/"},"wordCount":719,"commentCount":4,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg","keywords":["Linux","Password"],"articleSection":["Security","Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/","name":"How to Enforce Password Quality in Linux | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg","datePublished":"2018-08-23T08:21:50+00:00","dateModified":"2022-06-03T08:34:43+00:00","description":"How to Enforce Password Quality in Linux | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/08\/How-to-Enforce-Password-Quality-in-Linux.jpg","width":742,"height":372,"caption":"How to Enforce Password Quality in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enforce-password-quality-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Enforce Password Quality in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=27891"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27891\/revisions"}],"predecessor-version":[{"id":41777,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27891\/revisions\/41777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27896"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}