<?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: Password aging in NIS in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496034#M744951</link>
    <description>passwd: illegal option -- r&lt;BR /&gt;&lt;BR /&gt;Patching out of date? Or OS out of date (HP-UX 10.20)?&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;PS - thanks for the quick response!</description>
    <pubDate>Wed, 02 Mar 2005 10:38:37 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2005-03-02T10:38:37Z</dc:date>
    <item>
      <title>Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496032#M744949</link>
      <description>Hi everybody.&lt;BR /&gt;&lt;BR /&gt;I have been asked to set up password aging on our NIS system: minimum 1 day, maximum 60.&lt;BR /&gt;&lt;BR /&gt;I've had a look at the manual pages and this seems easy to do on a stand-alone system using passwd, but there doesn't seem to be a similar facility for yppasswd.&lt;BR /&gt;&lt;BR /&gt;The instructions I inherited tell me to insert 43 into the user's entry in the passwd file to set aging, but does this set the aging to what I want?&lt;BR /&gt;&lt;BR /&gt;I also need to set the system to lock users out if they don't log in within the 60 day limit or after 6 unsuccessful password attempts.&lt;BR /&gt;&lt;BR /&gt;Assistance will be rewarded with points.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Wed, 02 Mar 2005 10:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496032#M744949</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-03-02T10:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496033#M744950</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;The passwd command will interact with your NIS system (see man passwd).  From the EXAMPLES section:&lt;BR /&gt;&lt;BR /&gt;"Modify the minimum time between password changes of user1 to 7 days in the nisplus repository:&lt;BR /&gt;&lt;BR /&gt;           passwd -r nisplus -n 7 user1"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 02 Mar 2005 10:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496033#M744950</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-03-02T10:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496034#M744951</link>
      <description>passwd: illegal option -- r&lt;BR /&gt;&lt;BR /&gt;Patching out of date? Or OS out of date (HP-UX 10.20)?&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;PS - thanks for the quick response!</description>
      <pubDate>Wed, 02 Mar 2005 10:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496034#M744951</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-03-02T10:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496035#M744952</link>
      <description>The simple answer is that you can not do this(er.. all of what you are looking to do).  NIS supports standard passwd mapping.&lt;BR /&gt;&lt;BR /&gt;Standard passwd will support basic aging.  What is not supported is account locking for unsuccessfull login attempts.&lt;BR /&gt;&lt;BR /&gt;If you read the man pages for passwd, you can easily find out how to set up the aging context in passwd.  You do not necessarily need to insert anything into a passwd file, the passwd command run on the server will handle the edits for you.&lt;BR /&gt;&lt;BR /&gt;If your requirements can be satisfied with only the aging aspect, you should have no problem.&lt;BR /&gt;&lt;BR /&gt;Locks on attempts are not supported in an NIS environment, because the client does not report to the server.  (there is no reporting built into NIS).  &lt;BR /&gt;&lt;BR /&gt;NIS maps are shared, so the client reads the hash from the passwd map, and compares that locally to a hash created at login attempts.&lt;BR /&gt;&lt;BR /&gt;If you need the locking ability, you have to look at a completely different authentication system.  There are only 2 common systems for authentication that support reporting.  Those would be NIS+ and LDAP.  &lt;BR /&gt;&lt;BR /&gt;I have similar requirements to yours, and have opted to use LDAP (and have been for 9 months).&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Sincerely,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 02 Mar 2005 10:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496035#M744952</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2005-03-02T10:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496036#M744953</link>
      <description>You will need to run this command on the NIS master:&lt;BR /&gt;&lt;BR /&gt;passwd -x 60 -n 1 user.&lt;BR /&gt;&lt;BR /&gt;I would do a ypcat passwd | awk -F ':' '{if (($3 + 0) &amp;gt;= 101) print $1}' | while read USER&lt;BR /&gt;  do&lt;BR /&gt;     passwd -x 60 -n 1 ${USER}&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now for the bad news. Under NIS you can't really set min to 1 day or max to 60 days because the granularity is one week. Your 1 day will be rounded up to 1 week (beginning each Thursday because 1-Jan-1970 was a Thursday) and your 60 days will be rounded up to 9 weeks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unless you write a custom login (which is the way I've done it under NIS in the past -- along with a custom yppasswd) your needs to lock out users can't be done. The NIS maps don't carry that data.&lt;BR /&gt;&lt;BR /&gt;You need to look at either NIS+ (which will work with Trusted systems) or LDAP. LDAP is the better choice because NIS+ is going away.</description>
      <pubDate>Wed, 02 Mar 2005 10:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496036#M744953</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-02T10:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496037#M744954</link>
      <description>I forgot to say that after you run the poasswd comand on the NIS master, you then need to:&lt;BR /&gt;cd /var/yp&lt;BR /&gt;make&lt;BR /&gt;&lt;BR /&gt;That will update/push the NIS maps.</description>
      <pubDate>Wed, 02 Mar 2005 10:42:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496037#M744954</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-02T10:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496038#M744955</link>
      <description>On the NIS server:&lt;BR /&gt;&lt;BR /&gt;passwd -n 1 -x 60 mark&lt;BR /&gt;&lt;BR /&gt;where mark is a test user I set up so I could experiment before doing this to a "real" user.&lt;BR /&gt;&lt;BR /&gt;Error message: mark not in local password file&lt;BR /&gt;&lt;BR /&gt;But I know this - I want to amend mark in the NIS password file!&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 02 Mar 2005 10:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496038#M744955</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-03-02T10:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496039#M744956</link>
      <description>I've configured password aging by hand.  You can do this by editing the passwd file on the NIS master.  Password aging information is added to the password hash:&lt;BR /&gt;&lt;BR /&gt;user1:--hash---,abCC:uid:gid:....etc&lt;BR /&gt;&lt;BR /&gt;A comma separates the encrypted password from the password aging information.  The first character after the comma sets the number of weeks for which the password is valid.  The second character after the comma is used to set the minimum number of weeks which much pass before the password can be changed.  The last two characters after the comma define the number of weeks since the password was last changed.  The weeks are counted from the beginning of 1970. The only thing tricky is that this data is specified using Base-64.  So, valid characters are:  &lt;BR /&gt; . = 0&lt;BR /&gt; / = 1&lt;BR /&gt; 0-9 = 2-11&lt;BR /&gt; A-Z = 12-37&lt;BR /&gt; a-z = 38-63&lt;BR /&gt;&lt;BR /&gt;To test this, create an account:&lt;BR /&gt;user1:--hash---,7/eQ:uid:gid:....etc&lt;BR /&gt;&lt;BR /&gt;This will set passwd aging for user1 to:&lt;BR /&gt;max password life(7)=63 days (9 weeks)&lt;BR /&gt;min password life(/)=7 days (1 week)&lt;BR /&gt;and password was last changed (eQ) Feb-24-2005.&lt;BR /&gt;You can verify this by running:&lt;BR /&gt;logins -x -l user1&lt;BR /&gt;&lt;BR /&gt;With HPUX, aging can only be specified by weeks.  So, you can't set the min life to 1 day.  You would have to specify 0-days (0-weeks) or 7 days (1-week).</description>
      <pubDate>Wed, 02 Mar 2005 11:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496039#M744956</guid>
      <dc:creator>john kingsley</dc:creator>
      <dc:date>2005-03-02T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496040#M744957</link>
      <description>Typically /etc/passwd is used as the source file for the NIS passwd map. In your case, they are different. Depending on your OS version, you can use a passwd -F file option to identify the alternate passwd file and then do a ypmake to update/push the maps.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2005 11:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496040#M744957</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-02T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Password aging in NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496041#M744958</link>
      <description>Excellent solution John - thanks. And thanks to everyone else for their suggestions.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Fri, 11 Mar 2005 07:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-in-nis/m-p/3496041#M744958</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-03-11T07:26:48Z</dc:date>
    </item>
  </channel>
</rss>

