{"id":278,"date":"2011-12-15T15:48:06","date_gmt":"2011-12-15T07:48:06","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=278"},"modified":"2012-06-16T22:32:59","modified_gmt":"2012-06-16T14:32:59","slug":"disable-turn-off-linux-password-expiration-aging","status":"publish","type":"post","link":"http:\/\/www.sysadmindayph.com\/blog\/disable-turn-off-linux-password-expiration-aging\/","title":{"rendered":"Disable \/ Turn Off  Linux Password expiration \/ Aging"},"content":{"rendered":"<p>Yep, another personal reference and to think that I should know these stuff by heard. Well, most of the servers I am handling now are solaris and for particular example, it&#8217;s for Linux..<\/p>\n<p>I guess there will be some similarities but for this post, we&#8217;ll take Redhat linux as an example:<\/p>\n<p>The command is chage (looks like a misspelled &#8216;change&#8217; right? It&#8217;s actually &#8220;Change&#8221; &#8220;Age&#8221;)<\/p>\n<p>\/etc\/shadow stores actual password in encrypted format for user\u2019s account with additional properties related to user password.<\/p>\n<p>The password expiration information for a user is contained in the last 6 fields. Password expiration for a select user can be disabled by editing the \/etc\/shadow file<\/p>\n<p>However I recommend using chage command. The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his\/her password.<\/p>\n<p>To list current aging type chage command as follows:<\/p>\n<p># chage -l rg49945<br \/>\nMinimum:        0<br \/>\nMaximum:        99999<br \/>\nWarning:        7<br \/>\nInactive:       -1<br \/>\nLast Change:            Jun 07, 2011<br \/>\nPassword Expires:       Never<br \/>\nPassword Inactive:      Never<br \/>\nAccount Expires:        Never<br \/>\n#<br \/>\n# chage -l ct92623<br \/>\nMinimum:        0<br \/>\nMaximum:        99999<br \/>\nWarning:        7<br \/>\nInactive:       -1<br \/>\nLast Change:            Jun 07, 2011<br \/>\nPassword Expires:       Never<br \/>\nPassword Inactive:      Never<br \/>\nAccount Expires:        Never<br \/>\n#<br \/>\n# passwd rg49945<br \/>\nChanging password for user rg49945.<br \/>\nNew password:<br \/>\nRe-enter new password:<br \/>\nPassword changed.<br \/>\npasswd: all authentication tokens updated successfully.<br \/>\n#<br \/>\n# passwd ct92623<br \/>\nChanging password for user ct92623.<br \/>\nNew password:<br \/>\nRe-enter new password:<br \/>\nPassword changed.<br \/>\npasswd: all authentication tokens updated successfully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yep, another personal reference and to think that I should know these stuff by heard. Well, most of the servers I am handling now are solaris and for particular example, it&#8217;s for Linux.. I guess &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":4,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":352,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions\/352"}],"wp:attachment":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}