<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to define password policy on Linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542523#M17529</link>
    <description>The default password policy for Linux requires passwords a minimum of six characters.&lt;BR /&gt;&lt;BR /&gt;2 Expiration can be scripted with the passwd command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;passwd -x maxdays&lt;BR /&gt;&lt;BR /&gt;3 Password re-use is not permitted although I don't know what the default depth is.&lt;BR /&gt;&lt;BR /&gt;4 Account is not locked after 3 fails.  This can be done by script:&lt;BR /&gt;strings /var/log/btmp | grep username | wc -l&lt;BR /&gt;&lt;BR /&gt;If the username shows up three times issue a passwd -l &lt;USERNAME&gt; and its locked.&lt;BR /&gt;&lt;BR /&gt;5 Not sure this can be done. It can with hpux.&lt;BR /&gt;&lt;BR /&gt;7 (6?) the crack library prevents this for regular users&lt;BR /&gt;&lt;BR /&gt;Its almost all built in, though it requires some scripting.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.tldp.org" target="_blank"&gt;http://www.tldp.org&lt;/A&gt; has some docs that can help you do this in a more integrated way.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/USERNAME&gt;</description>
    <pubDate>Wed, 11 May 2005 14:34:23 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2005-05-11T14:34:23Z</dc:date>
    <item>
      <title>How to define password policy on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542522#M17528</link>
      <description>How to define the following password policy on Linux:&lt;BR /&gt;&lt;BR /&gt;1. Length must be at least 6 characters&lt;BR /&gt;2. expire after 90 days&lt;BR /&gt;3. Cannot reuse previous password&lt;BR /&gt;4. Account is locked after 3 failed attempts. Unlocked after 15 minutes.&lt;BR /&gt;5. User is required to change password after first login (after servicedesk creates the account).&lt;BR /&gt;7. Password can not be the same as the username.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 11 May 2005 12:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542522#M17528</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2005-05-11T12:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to define password policy on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542523#M17529</link>
      <description>The default password policy for Linux requires passwords a minimum of six characters.&lt;BR /&gt;&lt;BR /&gt;2 Expiration can be scripted with the passwd command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;passwd -x maxdays&lt;BR /&gt;&lt;BR /&gt;3 Password re-use is not permitted although I don't know what the default depth is.&lt;BR /&gt;&lt;BR /&gt;4 Account is not locked after 3 fails.  This can be done by script:&lt;BR /&gt;strings /var/log/btmp | grep username | wc -l&lt;BR /&gt;&lt;BR /&gt;If the username shows up three times issue a passwd -l &lt;USERNAME&gt; and its locked.&lt;BR /&gt;&lt;BR /&gt;5 Not sure this can be done. It can with hpux.&lt;BR /&gt;&lt;BR /&gt;7 (6?) the crack library prevents this for regular users&lt;BR /&gt;&lt;BR /&gt;Its almost all built in, though it requires some scripting.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.tldp.org" target="_blank"&gt;http://www.tldp.org&lt;/A&gt; has some docs that can help you do this in a more integrated way.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 11 May 2005 14:34:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542523#M17529</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-11T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to define password policy on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542524#M17530</link>
      <description>SEP covered most of the points already.&lt;BR /&gt;&lt;BR /&gt;I'll add this:&lt;BR /&gt;&lt;BR /&gt;5. Create the user with an expired password already.  First login will ask for a new password.&lt;BR /&gt;&lt;BR /&gt;Most of the other bits and pieces is PAM territory.  The password restrictions are all 'pam_cracklib' stuff (you should have '/usr/share/doc/pam-0.*/txts/README.pam_cracklib' on your system which documents it), and it's reasonably powerful.&lt;BR /&gt;&lt;BR /&gt;One thing I have noticed though is that Linux can sometimes let a user through the password change routine upon login, but the expiration values are updated.  I've only seen this in an NIS situation however.</description>
      <pubDate>Wed, 11 May 2005 19:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542524#M17530</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-05-11T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to define password policy on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542525#M17531</link>
      <description>&lt;BR /&gt;the requirement of length, reusing of previous password, password not of same as username can be set through PAM configuration. read the pam module document to findout how to do this.&lt;BR /&gt;&lt;BR /&gt;expire can be set through passwd -x&lt;BR /&gt;&lt;BR /&gt;if you are using latest SUSE distribution there is option to force the user to change password after first login. option is passwd -e&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Thu, 12 May 2005 01:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-define-password-policy-on-linux/m-p/3542525#M17531</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-12T01:23:48Z</dc:date>
    </item>
  </channel>
</rss>

