{"id":1162,"date":"2021-07-06T12:42:20","date_gmt":"2021-07-06T12:42:20","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=1162"},"modified":"2021-10-04T11:41:23","modified_gmt":"2021-10-04T11:41:23","slug":"ubuntu-server-password-protection","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/","title":{"rendered":"How to strengthen Ubuntu server password protection?"},"content":{"rendered":"<p>Keeping a Ubuntu server secure from assaults and data leaks requires implementing a robust password policy. Enforcing a minimum length and specifying password age are two best practices for password regulations. To complete these operations, I use the libpam-cracklib software.<\/p>\n<p><a href=\"https:\/\/www.velaninfo.com\/rs\/tech-tips\/server\/\"><strong>Install the libpam-cracklib package:<\/strong><\/a><\/p>\n<p><strong>sudo<\/strong><strong>\u00a0<\/strong><strong>apt-get install<\/strong><strong>\u00a0libpam-cracklib<\/strong><\/p>\n<p>To enforce password length:<\/p>\n<p>Go to the \/etc\/pam.d\/common-password file and open it.<\/p>\n<p>Modify the minlen=12 line to change the minimum character length of all passwords to whatever number of characters you wish.<\/p>\n<p>To avoid password re-use, follow these steps:<\/p>\n<p>Add the remember=x line to the same file (\/etc\/pam.d\/common-password).<\/p>\n<p>For instance, use remember=5 to prevent a user from reusing one of their past five passwords.To enforce password age:<\/p>\n<p>In the \/etc\/login.defs file, find and replace the following lines with your selected amount of time (days). Consider the following scenario:<\/p>\n<p><strong>PASS_MIN_AGE: 3<br \/>\nPASS_MAX_AGE: 90<br \/>\nPASS_WARN_AGE: 14<\/strong><\/p>\n<p>To enforce character specifications:<\/p>\n<p>The four parameters lcredit (lowercase), ucredit (uppercase), dcredit (digit), and ocredit (uppercase) are used to enforce character specifications in passwords (other characters).<\/p>\n<p>Find the line containing pam cracklib.so in the same file (\/etc\/pam.d\/common-password).<\/p>\n<p>To the end of this line, add the following:<\/p>\n<p><strong>lcredit=-a ucredit=-b dcredit=-c ocredit=-d<\/strong><\/p>\n<p>The following line, for example, demands that passwords have one of each parameter. You can alter the numbers to achieve the level of password security you desire:<\/p>\n<p><strong>lcredit=-1 ucredit=-1 dcredit=-1 ocredit=-1<\/strong><\/p>\n<p>At <strong>Velan<\/strong>, our server support engineers can harden &amp; manage your Linux, Ubuntu server. If you are interested in our service, please fill the Quick connect form to <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>get in touch with us<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keeping a Ubuntu server secure from assaults and data leaks requires implementing a robust password policy. Enforcing a minimum length and specifying password age are two best practices for password regulations. To complete these operations, I use the libpam-cracklib software. Install the libpam-cracklib package: sudo\u00a0apt-get install\u00a0libpam-cracklib To enforce password length: Go to the \/etc\/pam.d\/common-password file&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-1162","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-core","Categories_tech_tip-linux","Categories_tech_tip-password-policy","Categories_tech_tip-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Ubuntu server password protection | Linux server security<\/title>\n<meta name=\"description\" content=\"Securing Linux Server is essential to protect our data from the hackers using with the libpam-cracklib software. steps to securing your Linux server\" \/>\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.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to strengthen Ubuntu server password protection?\" \/>\n<meta property=\"og:description\" content=\"Securing Linux Server is essential to protect our data from the hackers using with the libpam-cracklib software. steps to securing your Linux server\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-04T11:41:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/\",\"url\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/\",\"name\":\"Ubuntu server password protection | Linux server security\",\"isPartOf\":{\"@id\":\"https:\/\/www.velaninfo.com\/rs\/#website\"},\"datePublished\":\"2021-07-06T12:42:20+00:00\",\"dateModified\":\"2021-10-04T11:41:23+00:00\",\"description\":\"Securing Linux Server is essential to protect our data from the hackers using with the libpam-cracklib software. steps to securing your Linux server\",\"breadcrumb\":{\"@id\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.velaninfo.com\/rs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to strengthen Ubuntu server password protection?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.velaninfo.com\/rs\/#website\",\"url\":\"https:\/\/www.velaninfo.com\/rs\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu server password protection | Linux server security","description":"Securing Linux Server is essential to protect our data from the hackers using with the libpam-cracklib software. steps to securing your Linux server","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.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/","og_locale":"en_US","og_type":"article","og_title":"How to strengthen Ubuntu server password protection?","og_description":"Securing Linux Server is essential to protect our data from the hackers using with the libpam-cracklib software. steps to securing your Linux server","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/","og_site_name":"Velan","article_modified_time":"2021-10-04T11:41:23+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/","name":"Ubuntu server password protection | Linux server security","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2021-07-06T12:42:20+00:00","dateModified":"2021-10-04T11:41:23+00:00","description":"Securing Linux Server is essential to protect our data from the hackers using with the libpam-cracklib software. steps to securing your Linux server","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/ubuntu-server-password-protection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to strengthen Ubuntu server password protection?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=1162"}],"version-history":[{"count":3,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1162\/revisions"}],"predecessor-version":[{"id":1465,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1162\/revisions\/1465"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=1162"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}