<?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 Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247155#M174728</link>
    <description>If someone is doing something hokey with the passwd file, it would be a good thing to break.&lt;BR /&gt;&lt;BR /&gt;However in the real world, best to do a little diligence and find out what is going on.  If something needs to access /etc/passwd directly (and I can think of no reason that it should - but who knows!), then look into the utility sudo.  It can be configured to allow for things like that, but the best thing would be using std Unix cmds to manipulate the /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;Perms of 666 on the passwd file is asking for disaster (666 just happens to also be the sign of the devil), anything tighter than 444 and a lot of stuff will break.&lt;BR /&gt;&lt;BR /&gt;Rt.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Apr 2004 13:33:50 GMT</pubDate>
    <dc:creator>Robert True</dc:creator>
    <dc:date>2004-04-15T13:33:50Z</dc:date>
    <item>
      <title>Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247144#M174717</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm running HP-UX 11i (non-trusted) on a R5470. Every time I set up users for password aging - it starts diappearing.  I.E. On the 3rd of this month I set up all users for password aging.. now, on the 13th - 35 people no longer have password aging. &lt;BR /&gt;&lt;BR /&gt;I'm somewhat new to sys admin and researching these types of issues - but I thought (according to docs I've read) that password aging is supposed to stay on an account, even if they change their password... right?&lt;BR /&gt;&lt;BR /&gt;If it is supposed to stay, any ideas on why it's disappearing?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jennifer</description>
      <pubDate>Tue, 13 Apr 2004 17:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247144#M174717</guid>
      <dc:creator>Jennifer Hanson</dc:creator>
      <dc:date>2004-04-13T17:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247145#M174718</link>
      <description>First look at the passwd field for a given user. If passwd aging is in play there should be 4 characters separated by a comma at the end of the encrypted (hashed to be more precise) passwd. Man 4 passwd will explain how the data is encoded. Note that the actual resolution is in weeks that count off every Thursday because Jan 1, 1970 was a Thursday --- the beginning of the universe as fas as UNIX is concerned.&lt;BR /&gt;&lt;BR /&gt;If the passwd aging subfield truly is disappearing then the most likely explanation is human; you have more than one&lt;BR /&gt;root user who is "helping" you.</description>
      <pubDate>Tue, 13 Apr 2004 21:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247145#M174718</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-13T21:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247146#M174719</link>
      <description>Hello,&lt;BR /&gt;I guess I should give myself more credit. I am familiar with how to tell if a user ID has password aging and how to figure out what the info means in the passwd file...&lt;BR /&gt;&lt;BR /&gt;I can say with 100% confidence that I am the only one doing unix admin duties - so the human factor doesn't make sense in this situation.&lt;BR /&gt;&lt;BR /&gt;Any other ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jennifer</description>
      <pubDate>Tue, 13 Apr 2004 22:22:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247146#M174719</guid>
      <dc:creator>Jennifer Hanson</dc:creator>
      <dc:date>2004-04-13T22:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247147#M174720</link>
      <description>Yes password aging is supposed to stay on a given userid once it has been implemented.&lt;BR /&gt;Have you checked for any later patch revisions pertaining to this?&lt;BR /&gt;&lt;BR /&gt;You can start here:&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/patch/search.do?pageContextName=hpux:::&amp;amp;BC=patch.breadcrumb.main" target="_blank"&gt;http://www1.itrc.hp.com/service/patch/search.do?pageContextName=hpux:::&amp;amp;BC=patch.breadcrumb.main&lt;/A&gt;|patch.breadcrumb.pdb|</description>
      <pubDate>Tue, 13 Apr 2004 22:47:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247147#M174720</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-04-13T22:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247148#M174721</link>
      <description>Hi Jennifer,&lt;BR /&gt;&lt;BR /&gt;Try this link. It may help.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000072401010" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000072401010&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The itrc doc id is KBRC00014139.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2004 00:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247148#M174721</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-04-14T00:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247149#M174722</link>
      <description>I have fought the same battle - you are not crazy - but I can't remember the exact resolution.&lt;BR /&gt;&lt;BR /&gt;Question: How did you add the pwd aging?  Some os's you can edit the /etc/passwd  and add ,..  (meaning passwd aging, expired passwd) to the passwd field, but HPUX will ignore it and delete with the next passwd change. (I never tried ,.... that I can recall.)  I solved the problem with building templates in sam for each unix group.  Go into the UserTemplates and drill down until you hit the "Password Specification..." button.  You can add the passwd aging there and it will stick when you add new users using the template.&lt;BR /&gt;&lt;BR /&gt;You should be able to add valid info in the form ",B0iP" to the passwd field though and it should be ok though.  The first 2 charators need to make sense (ie: in the correct order and value) and the last 2 need to be a valid time (ie: in the correct order) since unix epoch (0001,Jan 1, 1970).  I would let the system build one with a template per  your specs and copy that if you were going that route.&lt;BR /&gt;&lt;BR /&gt;Rt.</description>
      <pubDate>Thu, 15 Apr 2004 08:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247149#M174722</guid>
      <dc:creator>Robert True</dc:creator>
      <dc:date>2004-04-15T08:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247150#M174723</link>
      <description>I would still like to know what the raw data is rather than knowing what some tool reports. Are the four characters plus comma there or not? Is the mode of /etc/passwd set to 644 and owned by root? Is the passwd set only with the passwd command or do you have some other tools? I also assume that you have not created a custom passwd command.&lt;BR /&gt;&lt;BR /&gt;The only thing that occurs to me is that on 11.11, the libpam routines are used when passwd expire rather than the older method of calling passwd (or yppasswd if NIS). Check for the latest PAM and passwd patches.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Apr 2004 10:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247150#M174723</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-15T10:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247151#M174724</link>
      <description>Thank you all for your thoughts. Robert I'm glad to hear I'm not alone.&lt;BR /&gt;&lt;BR /&gt;I initially added all password aging through SAM, editing a user. After the user was created already. Because that is a hassle (they cannot be logged in) this last time I added the password aging by command line "passwd -n 0 -x 91 user" (for 0 and 13 weeks). Since I did this the other day, I haven't seen any evidence either way of these users working still.&lt;BR /&gt;&lt;BR /&gt;A. Clay, to answer your questions. For those that have lost their password aging the 4 characters and comma are not there. The permissions on the file are "-rw-rw-rw" and owned by root. The passwords are setup within SAM when creating a user.  However a script that uses command line is used to change passwords if needed.  Your last question - custom passwd command - yes, I used the command mentioned above, but only recently. To recent to tell anything.&lt;BR /&gt;&lt;BR /&gt;To be honest with you, actually modifying the passwd file directly scares me - I'm not sure why. I guess by nature I'm overly cautious...  Should I not be about that?  Robert, do you feel this would fix the problem?  I'm thinking I'm going to start using a template to help get new users setup correctly...&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Jen</description>
      <pubDate>Thu, 15 Apr 2004 11:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247151#M174724</guid>
      <dc:creator>Jennifer Hanson</dc:creator>
      <dc:date>2004-04-15T11:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247152#M174725</link>
      <description>STOP. GO DIRECTLY TO JAIL. DO NOT COLLECT $200.&lt;BR /&gt;&lt;BR /&gt;Immediately change your passwd mode to 444 and owned by root. Anyone change remove the aging subfield with nothing more than vi.&lt;BR /&gt;Root doesn't need write permission and all the other utilities use setuid to change the file. You are sitting on a security bomb waiting to explode. &lt;BR /&gt;</description>
      <pubDate>Thu, 15 Apr 2004 11:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247152#M174725</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-15T11:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247153#M174726</link>
      <description>I agree with A. Clay: change perms to 444 and root owner on /etc/passwd asap.&lt;BR /&gt;&lt;BR /&gt;The 'passwd -n 14 -x 91 username' works on my system and will add ',B0xP' to the passwd field for the username.  Subsequent passwd cmds will change the passwd correctly.&lt;BR /&gt;&lt;BR /&gt;If however, the value inserted is not valid, (lets say 'passwd -n 0 -x 0 username' which the system will accept but add ',..xP to the passwd field), then the next passwd command will remove the invalid aging bits entirely when it changes the passwd for the username.&lt;BR /&gt;&lt;BR /&gt;You said you used a script to run the passwd cmd with the -n and -x options.  Did the script function correctly and add valid values for the aging bits?  It sounds like it did not.&lt;BR /&gt;&lt;BR /&gt;Again change the perms to 444 before you do anything else.&lt;BR /&gt;&lt;BR /&gt;Rt.</description>
      <pubDate>Thu, 15 Apr 2004 12:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247153#M174726</guid>
      <dc:creator>Robert True</dc:creator>
      <dc:date>2004-04-15T12:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247154#M174727</link>
      <description>Hey guys-&lt;BR /&gt;&lt;BR /&gt;Thanks for your input.  We run a database on top of the unix stuff - so I do have to check with that company to make sure I am able to change the permissions on the file. I'm assuming it could cause trouble... but at least I understand now what most likely is the problem!&lt;BR /&gt;&lt;BR /&gt;Thanks for your help. I'll let you guys know if I'm able to change it and it's successful.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;Jennifer</description>
      <pubDate>Thu, 15 Apr 2004 13:06:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247154#M174727</guid>
      <dc:creator>Jennifer Hanson</dc:creator>
      <dc:date>2004-04-15T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247155#M174728</link>
      <description>If someone is doing something hokey with the passwd file, it would be a good thing to break.&lt;BR /&gt;&lt;BR /&gt;However in the real world, best to do a little diligence and find out what is going on.  If something needs to access /etc/passwd directly (and I can think of no reason that it should - but who knows!), then look into the utility sudo.  It can be configured to allow for things like that, but the best thing would be using std Unix cmds to manipulate the /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;Perms of 666 on the passwd file is asking for disaster (666 just happens to also be the sign of the devil), anything tighter than 444 and a lot of stuff will break.&lt;BR /&gt;&lt;BR /&gt;Rt.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Apr 2004 13:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247155#M174728</guid>
      <dc:creator>Robert True</dc:creator>
      <dc:date>2004-04-15T13:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247156#M174729</link>
      <description>Regardless what the company you check with says, do not leave the password file 666. &lt;BR /&gt;Find another solution in the future, if they say it needs to be 666. sudo as mentioned above is a good one. &lt;BR /&gt;&lt;BR /&gt;Of course my first question if they say it needs to be 666 would be:  Why, do you "think" it needs to be set that way? &lt;BR /&gt;&lt;BR /&gt;Allowing anything, or anyone that is not admin controlled access to write to the password file is asking for disaster. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Apr 2004 13:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247156#M174729</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-04-15T13:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247157#M174730</link>
      <description>Hi Jennifer,&lt;BR /&gt;&lt;BR /&gt;I agree with the others - CHANGE THE PERMS ON /etc/passwd IMMEDIATELY. It's your system that can be compromised &amp;amp; no bonehead should be allowed to leave the door unlocked to your house.&lt;BR /&gt;&lt;BR /&gt;Also I would immediately check that passwd file &amp;amp; make sure there are no other users with UID=0  and/or GID=0 or 3 - as these would be root level users no matter what their username was.&lt;BR /&gt;&lt;BR /&gt;My 2 cents,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 15 Apr 2004 14:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247157#M174730</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-04-15T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247158#M174731</link>
      <description>Just to make you sleep even less there is a possibility that someone TEMPORARILY changed their UID to 0; logged in again to become root; and then started creating setuid programs and/or scripts owned by root. They could then change their uid back to original and no one is the wiser. They now have a backdoor to become root no matter what you do to tighten up the security of the passwd file itself. You need to start a find looking for files with the setuid and/or the setgid bits set. Some are normal and neccessary (e.g. the passwd command) but if you find in strange places then you should remove them. Even worse, someone could now have commands that should have the setuid bit set (again, like passwd) but these comands are a new "improved" version of the original that behave exactly like the original command unless invoked with a special command-line argument. Now, don't you feel better?&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Apr 2004 14:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247158#M174731</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-15T14:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Password Aging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247159#M174732</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I checked and I am able to change it.  I did and I will continue to watch for loss of the aging.  I would speculate that it won't happen anymore!&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help. I'm now going to try and do a little research to understand how the permissions got changed to be that in the first place.  I imagine the app we are running did it at some point. I'll have to watch that in future upgrades.&lt;BR /&gt;&lt;BR /&gt;As I mentioned in the beginning, I'm still newer to unix admin .. I appreciate all of help - I hope someday to work up to the level you guys are at!&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;Jennifer</description>
      <pubDate>Thu, 15 Apr 2004 14:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging/m-p/3247159#M174732</guid>
      <dc:creator>Jennifer Hanson</dc:creator>
      <dc:date>2004-04-15T14:27:55Z</dc:date>
    </item>
  </channel>
</rss>

