<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672478#M51216</link>
    <description>Anthony,&lt;BR /&gt;&lt;BR /&gt;Here's a quick script:&lt;BR /&gt;&lt;BR /&gt;cat /etc/passwd | awk -F: '{if ($3 &amp;gt; 100) system("passwd -f "$1)}'&lt;BR /&gt;&lt;BR /&gt;Change the "if" and "100" if "100" is not the lowest account you don't want to change.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Wed, 27 Feb 2002 13:36:37 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-02-27T13:36:37Z</dc:date>
    <item>
      <title>Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672475#M51213</link>
      <description>Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;I want all user to change their password when they login next time, Any suggestion or anyone have any script to do this job, I was thinking to get the user name from /etc/passwd and run passwd -f, but I don't wanna change the passwd for root etc. Thanks in advance.Note this is not a trusted system&lt;BR /&gt;&lt;BR /&gt;Anthony</description>
      <pubDate>Wed, 27 Feb 2002 13:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672475#M51213</guid>
      <dc:creator>Anthony khan</dc:creator>
      <dc:date>2002-02-27T13:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672476#M51214</link>
      <description>Anthony,&lt;BR /&gt;&lt;BR /&gt;Write a little awk script to go through the passwd file and set the "-f" option per each user. &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 27 Feb 2002 13:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672476#M51214</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-27T13:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672477#M51215</link>
      <description>Hi Anthony,&lt;BR /&gt;&lt;BR /&gt;You can write a quick script to run passwd -f for a list of users&lt;BR /&gt;&lt;BR /&gt;Run &lt;BR /&gt;cut -d : f1 /etc/passwd &amp;gt; /tmp/userlist&lt;BR /&gt;&lt;BR /&gt;This will create /tmp/userlist as a list of usernames from /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Then edit /tmp/userlist so that it contains only those usernames that you want to change passwords&lt;BR /&gt;&lt;BR /&gt;Then run&lt;BR /&gt;for i in ??cat /tmp/userlist??&lt;BR /&gt;do&lt;BR /&gt;passwd -f $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This will run passwd -f for each entry in the /tmp/userlist file&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 27 Feb 2002 13:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672477#M51215</guid>
      <dc:creator>John Strang</dc:creator>
      <dc:date>2002-02-27T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672478#M51216</link>
      <description>Anthony,&lt;BR /&gt;&lt;BR /&gt;Here's a quick script:&lt;BR /&gt;&lt;BR /&gt;cat /etc/passwd | awk -F: '{if ($3 &amp;gt; 100) system("passwd -f "$1)}'&lt;BR /&gt;&lt;BR /&gt;Change the "if" and "100" if "100" is not the lowest account you don't want to change.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 27 Feb 2002 13:36:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672478#M51216</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-27T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672479#M51217</link>
      <description>Implementing password aging can also help by which you don't need a script to do this.</description>
      <pubDate>Wed, 27 Feb 2002 14:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672479#M51217</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-02-27T14:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672480#M51218</link>
      <description>Hi Anthony,&lt;BR /&gt;&lt;BR /&gt;Two options:&lt;BR /&gt;&lt;BR /&gt;1) Enable password aging through SAM&lt;BR /&gt;2) Set -f option.&lt;BR /&gt;&lt;BR /&gt;# passwd -f "acct_name"&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Wed, 27 Feb 2002 15:22:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672480#M51218</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-27T15:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672481#M51219</link>
      <description>Thanks for response guys, sorry there is a problem in assigning points, I'll do it later.&lt;BR /&gt;&lt;BR /&gt;Chan &amp;amp; Shiju,&lt;BR /&gt;&lt;BR /&gt;If Enabling password aging do I have to make the system trusted, IF yes then this is a production box, is there any precaution I have to take.&lt;BR /&gt;&lt;BR /&gt;Thanks to all again&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2002 15:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672481#M51219</guid>
      <dc:creator>Anthony khan</dc:creator>
      <dc:date>2002-02-27T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672482#M51220</link>
      <description>Password aging doesn't require a trusted system.&lt;BR /&gt;&lt;BR /&gt;If you do go trusted, be careful with NIS (aka yellow pages), as it doesn't work with trusted systems.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 27 Feb 2002 15:35:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672482#M51220</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-02-27T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672483#M51221</link>
      <description>Hi Anthony,&lt;BR /&gt;&lt;BR /&gt;Yes, you need to convert your system to Trusted mode inorder to enable pasword aging functions. You can do these through SAM. &lt;BR /&gt;&lt;BR /&gt;Making system trusted has advantages and some disadvantages ( like NIS). See this guide for trusted systems:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/hpux/onlinedocs/B2355-90121/B2355-90121.html" target="_blank"&gt;http://www.docs.hp.com/hpux/onlinedocs/B2355-90121/B2355-90121.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also check this thread for some more information:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support3.external.hp.com/cki/bin/doc.pl/sid=bd9e15760b1142a5d4/screen=ckiDisplayDocument?docId=200000058669369" target="_blank"&gt;http://us-support3.external.hp.com/cki/bin/doc.pl/sid=bd9e15760b1142a5d4/screen=ckiDisplayDocument?docId=200000058669369&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2002 15:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672483#M51221</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-27T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672484#M51222</link>
      <description>I did a test on my non-trusted system and was able to enter&lt;BR /&gt;&lt;BR /&gt;passwd -f -x 7 joeuser&lt;BR /&gt;&lt;BR /&gt;When joeuser logged on, the system requested a new password, and it made an entry in /etc/passwd to indicate a max time of 7 days.&lt;BR /&gt;&lt;BR /&gt;Far as I can tell (and the man page for passwd), you don't need a trusted system.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 27 Feb 2002 15:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672484#M51222</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-02-27T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Password help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672485#M51223</link>
      <description>Hi Rod,&lt;BR /&gt;&lt;BR /&gt;When you invoke SAM-Auditing and security-System security policies-Password aging policies, the system will force you to make the system trusted. &lt;BR /&gt;&lt;BR /&gt;The '-f' option with passwd command deosn't require a trusted system. In the man pages of passwd:&lt;BR /&gt;&lt;BR /&gt;A superuser can modify password aging characteristics associated  with the user name using the following options - " -d, -f, -l, -x"&lt;BR /&gt;&lt;BR /&gt;Also the -w needs the system to be trusted.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Wed, 27 Feb 2002 16:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-help/m-p/2672485#M51223</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-27T16:06:32Z</dc:date>
    </item>
  </channel>
</rss>

