<?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: User Password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693000#M55846</link>
    <description>getprpw is under /usr/lbin/</description>
    <pubDate>Thu, 28 Mar 2002 16:58:16 GMT</pubDate>
    <dc:creator>MARTINACHE</dc:creator>
    <dc:date>2002-03-28T16:58:16Z</dc:date>
    <item>
      <title>User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2692998#M55844</link>
      <description>I run the following command to check the user password expiration date but no success. Can anyone give me hints on how to set up the date while changing the password of any user. Thanks in advance.&lt;BR /&gt;#logins -x -l jackien&lt;BR /&gt;jackien 375 cmsi 201 Jackie Nguyen&lt;BR /&gt;   /disk1/ACCT&lt;BR /&gt;   /bin/sh&lt;BR /&gt;   PS 000000 -1 -1 -1&lt;BR /&gt;&lt;BR /&gt;The last line shown no date, no time change and no expiration days. &lt;BR /&gt;Please advise. Thanks.&lt;BR /&gt;                             &lt;BR /&gt;        &lt;BR /&gt;                                                             &lt;BR /&gt;</description>
      <pubDate>Thu, 28 Mar 2002 16:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2692998#M55844</guid>
      <dc:creator>Jacqueline Nguyen</dc:creator>
      <dc:date>2002-03-28T16:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2692999#M55845</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try getprpw comnnand :&lt;BR /&gt;&lt;BR /&gt;getprpw -l your_user&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Patrice</description>
      <pubDate>Thu, 28 Mar 2002 16:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2692999#M55845</guid>
      <dc:creator>MARTINACHE</dc:creator>
      <dc:date>2002-03-28T16:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693000#M55846</link>
      <description>getprpw is under /usr/lbin/</description>
      <pubDate>Thu, 28 Mar 2002 16:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693000#M55846</guid>
      <dc:creator>MARTINACHE</dc:creator>
      <dc:date>2002-03-28T16:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693001#M55847</link>
      <description>getprpw only works on a trusted system</description>
      <pubDate>Thu, 28 Mar 2002 17:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693001#M55847</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-03-28T17:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693002#M55848</link>
      <description>Patrice,&lt;BR /&gt;Thanks for the quick response.&lt;BR /&gt;I have K360 box and run under 10.20 version. I access the command 'getptpw -l jackien' and the systems gives me an error 'sh: getprpw : not found'. &lt;BR /&gt;I look up under /usr/lbin and found the command. Then I type 'man getprpw' with no success (No manual entry for getprpw). &lt;BR /&gt;What's else should I do. Thanks.</description>
      <pubDate>Thu, 28 Mar 2002 17:11:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693002#M55848</guid>
      <dc:creator>Jacqueline Nguyen</dc:creator>
      <dc:date>2002-03-28T17:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693003#M55849</link>
      <description>I should know this, but can't think of a command off the top of my head.&lt;BR /&gt;But, looking at the encrypted password in the /etc/passwd file (non-trusted) will tell you password expiration. man passwd for detail on decoding. Assuming password aging is enabled on your system. (You'll see what I mean when you read the passwd man page if this is unfamiliar.)&lt;BR /&gt;Best O' luck&lt;BR /&gt;Kel</description>
      <pubDate>Thu, 28 Mar 2002 18:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693003#M55849</guid>
      <dc:creator>Kelli Ward</dc:creator>
      <dc:date>2002-03-28T18:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693004#M55850</link>
      <description>Hi Jackie,&lt;BR /&gt;&lt;BR /&gt;I'm not sure this is exactly what you want...&lt;BR /&gt;&lt;BR /&gt;A superuser can use the passwd command to specify the minimum number of days between password changes (-n min) and the maximum number of days a password can remain unchanged (-x max).  For example:&lt;BR /&gt;passwd -n 7 -x 56 jackien&lt;BR /&gt;&lt;BR /&gt;That sets the minumum days for a password to 7 and the maximum to 56.&lt;BR /&gt;&lt;BR /&gt;That can also be done thru SAM when you set up a new user or you can modify an existing user.&lt;BR /&gt;&lt;BR /&gt;From your example it looks like these settings are not applied to jackien's account.  Do this:&lt;BR /&gt;awk -F: '/jackien/ {print $2}' /etc/passwd&lt;BR /&gt;&lt;BR /&gt;The first 13 characters you get from this awk command are the hashed password.  The following 5 characters (the first being a comma) are the password aging parameters.  If missing, then password aging isn't set.&lt;BR /&gt;&lt;BR /&gt;Try the above passwd command to set the desired password aging parameters and then check the output of your logins command.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 28 Mar 2002 19:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693004#M55850</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-28T19:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693005#M55851</link>
      <description>Kelli, Thanks for the info.&lt;BR /&gt;Darrell, I ran those commands and all my user password aging never been set. Based on the man entry 'passwd(1)', I can change the aging date,etc. However, I have 500 users on the system, is there anyway that I modify passwd aging to all at once instead of each individual. &lt;BR /&gt;&lt;BR /&gt;Any help is appreciated. Thanks a lot.  Jackie</description>
      <pubDate>Thu, 28 Mar 2002 19:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693005#M55851</guid>
      <dc:creator>Jacqueline Nguyen</dc:creator>
      <dc:date>2002-03-28T19:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693006#M55852</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Please check if you are running NIS. If so then you have to mention a repository to the passwd -x option. Are you in NIS environment?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Giri Sekar.</description>
      <pubDate>Thu, 28 Mar 2002 19:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693006#M55852</guid>
      <dc:creator>Giri Sekar.</dc:creator>
      <dc:date>2002-03-28T19:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693007#M55853</link>
      <description>How about this if it's okay to set them all to the same min and max days...&lt;BR /&gt;&lt;BR /&gt;Get a list of loginids:&lt;BR /&gt;awk -F: '{print $1}' /etc/passwd &amp;gt;/tmp/loginids&lt;BR /&gt;&lt;BR /&gt;Edit /tmp/loginids and delete the ones you don't want to set aging for (ie root, sys, etc...)&lt;BR /&gt;&lt;BR /&gt;Set them all:&lt;BR /&gt;while read id&lt;BR /&gt;do&lt;BR /&gt;passwd -n 7 -x 56 $id&lt;BR /&gt;done &lt;BR /&gt;That's it.  Change the number of days to suit.&lt;BR /&gt;&lt;BR /&gt;Just in case there's a problem, make a backup copy of /etc/passwd first and be sure you are logged in as root on a couple of sessions.  You can run pwck afterwards (probably a good idea to run it first as well).  You should also be sure you can login from a new session before logging out of all the other root sessions.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 28 Mar 2002 20:03:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693007#M55853</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-28T20:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693008#M55854</link>
      <description>Giri's comment prompts me to say that my suggestion is for local password files only.  NIS would be a different thing.  Also, modifying /etc/passwd doesn't apply if you have converted to a trusted system.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 28 Mar 2002 20:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693008#M55854</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-28T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693009#M55855</link>
      <description>First you do one by the passwd -x command. Then go to the /etc/passwd file. If you look at the encrypted passwd portion , you will see the passwd what you have changed through -x has something after ",". Copy the total thing including "," after each encrypted passwd through vi. It should work.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Thu, 28 Mar 2002 20:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693009#M55855</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-03-28T20:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693010#M55856</link>
      <description>Thank you for pouring me a lot of info. I am fairly new in the System Admin role and I don't want to make any mistake. What's is NIS environment and what is trusted system and untrusted system. How can I check what my system runs under which environment. &lt;BR /&gt;&lt;BR /&gt;Thanks a lot for all your help.</description>
      <pubDate>Thu, 28 Mar 2002 20:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693010#M55856</guid>
      <dc:creator>Jacqueline Nguyen</dc:creator>
      <dc:date>2002-03-28T20:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693011#M55857</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;HPUX's concept called "trusted system" is simply a higher level of system security.  It utilizes a Trusted Computing Base (tcb) database.  Of primary concern is moving the hashed passwords out of /etc/passwd an into files in the tcb.&lt;BR /&gt;&lt;BR /&gt;"/usr/lbin/getprdef" will tell you if your system is trusted or not.  Two other indications of running a trusted system are:&lt;BR /&gt;1 - the presence of /tcb directory structure&lt;BR /&gt;2 - the password field of all entries in /etc/passwd have 1 character (an "*")&lt;BR /&gt;&lt;BR /&gt;NIS is Network Information Service.  It is primarily used in larger environments where syncronizing user accounts, passwords, even hosts tables on dozens or even hundreds of systems is desired.  You have one server with 500 accounts.  Imagine 100 servers with 500 accounts.&lt;BR /&gt;&lt;BR /&gt;To see if you are using NIS do:&lt;BR /&gt;grep NIS /etc/rc.config.d/namesvrs&lt;BR /&gt;&lt;BR /&gt;As usual for variables in /etc/rc.config.d files, 0 = no and 1 = yes&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 28 Mar 2002 21:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693011#M55857</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-28T21:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: User Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693012#M55858</link>
      <description>Darell,&lt;BR /&gt;Based on your instructions, I checked my system and it is not trusted. It is not running under NIS also. I am happy that I have learned new things today.&lt;BR /&gt;&lt;BR /&gt;Hi everyone, &lt;BR /&gt;Thank you for all your help. I will continue to experiment the passwd aging process this week end.&lt;BR /&gt;Best regards,&lt;BR /&gt;Jackie</description>
      <pubDate>Thu, 28 Mar 2002 23:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password/m-p/2693012#M55858</guid>
      <dc:creator>Jacqueline Nguyen</dc:creator>
      <dc:date>2002-03-28T23:05:26Z</dc:date>
    </item>
  </channel>
</rss>

