<?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 script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653777#M46701</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;How are you? Long time no see.&lt;BR /&gt;This time, I am doing the password script again. I make the 'userlist' file and then run:&lt;BR /&gt;&lt;BR /&gt;# for USER in 'cat userlist'&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; passwd -f $USER&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;then it has the message:&lt;BR /&gt;&lt;BR /&gt;Usage:&lt;BR /&gt;        passwd [name]&lt;BR /&gt;        passwd -r files [-F files] [name]&lt;BR /&gt;        passwd -r files [-e [shell]] [-gh] [name]&lt;BR /&gt;        passwd -r files -s [-a]&lt;BR /&gt;        passwd -r files -s [name]&lt;BR /&gt;        passwd -r files [-d|-l] [-f] [-n min] [-w warn] [-x max] name&lt;BR /&gt;        passwd -r nis [-e [shell]] [-gh] [name]&lt;BR /&gt;        passwd -r nisplus [-e [shell]] [-gh] [-D domain] [name]&lt;BR /&gt;        passwd -r nisplus -s [-a]&lt;BR /&gt;        passwd -r nisplus -s [-D domain] [name]&lt;BR /&gt;        passwd -r nisplus [-l] [-f] [-n min] [-w warn] [-x max] [-D domain] [nam&lt;BR /&gt;e]&lt;BR /&gt;        passwd -r dce [-e [shell]] [-gh] [name]&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do you guys know why? Thank you!&lt;BR /&gt;&lt;BR /&gt;ajk</description>
    <pubDate>Wed, 18 Sep 2002 05:10:22 GMT</pubDate>
    <dc:creator>ajk_3</dc:creator>
    <dc:date>2002-09-18T05:10:22Z</dc:date>
    <item>
      <title>Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653770#M46694</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a Unix system (OS 10.20 without the Trusted System. If don't want to use SAM for each user's password changing. Can I write a password script for all users which force them to change password at once? Thank you very much.&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;ajk</description>
      <pubDate>Mon, 28 Jan 2002 02:25:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653770#M46694</guid>
      <dc:creator>ajk_2</dc:creator>
      <dc:date>2002-01-28T02:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653771#M46695</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try "passwd -f login_name" this should  force the user to change the password. Look at the man page of passwd command.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 28 Jan 2002 03:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653771#M46695</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-28T03:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653772#M46696</link>
      <description>oops.. You asked for a script. Try this way.&lt;BR /&gt;&lt;BR /&gt;#awk '{FS=":";print $1}' /etc/passwd &amp;gt; userlist&lt;BR /&gt;#vi userlist&lt;BR /&gt;&lt;DELETE the="" default="" accounts="" like="" root=""&gt;&lt;BR /&gt;&lt;BR /&gt;#for USER in `cat userlist`&lt;BR /&gt;&amp;gt;do&lt;BR /&gt;&amp;gt;passwd -f $USER&lt;BR /&gt;&amp;gt;done&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/DELETE&gt;</description>
      <pubDate>Mon, 28 Jan 2002 03:15:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653772#M46696</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-28T03:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653773#M46697</link>
      <description>cp /etc/passwd /etc/passwd.bak&lt;BR /&gt;cat /etc/passwd |awk -F: {print $1} |&lt;BR /&gt;while read i&lt;BR /&gt;do&lt;BR /&gt;passwd -d $i&lt;BR /&gt;passwd -f $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;note:&lt;BR /&gt;passwd -d &lt;USERID&gt; : delete user passwd&lt;BR /&gt;passwd -f &lt;USERID&gt; : expire user's passwd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;/USERID&gt;&lt;/USERID&gt;</description>
      <pubDate>Mon, 28 Jan 2002 06:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653773#M46697</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-01-28T06:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653774#M46698</link>
      <description>Dear Sridhar Bhaskarla,&lt;BR /&gt;&lt;BR /&gt;I did try your method, but it said "does not exist". Do you know why? Thanks&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;ajk</description>
      <pubDate>Tue, 29 Jan 2002 01:39:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653774#M46698</guid>
      <dc:creator>ajk_2</dc:creator>
      <dc:date>2002-01-29T01:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653775#M46699</link>
      <description>Perhaps a slight adaptation of Sridhar's script to obviate the need to edit the list of users to remove pseudo users:&lt;BR /&gt;&lt;BR /&gt;USERLIST=`grep "/home" /etc/passwd | awk  -F:  '{print $1}'`&lt;BR /&gt;for EACH in $USERLIST&lt;BR /&gt;do&lt;BR /&gt;  passwd -f $EACH&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Where "/home" is where user directories live...&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 29 Jan 2002 02:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653775#M46699</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2002-01-29T02:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653776#M46700</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;Your all information are very helpful.&lt;BR /&gt;Thank you very much!&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;ajk</description>
      <pubDate>Wed, 30 Jan 2002 06:39:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653776#M46700</guid>
      <dc:creator>ajk_2</dc:creator>
      <dc:date>2002-01-30T06:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653777#M46701</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;How are you? Long time no see.&lt;BR /&gt;This time, I am doing the password script again. I make the 'userlist' file and then run:&lt;BR /&gt;&lt;BR /&gt;# for USER in 'cat userlist'&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; passwd -f $USER&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;then it has the message:&lt;BR /&gt;&lt;BR /&gt;Usage:&lt;BR /&gt;        passwd [name]&lt;BR /&gt;        passwd -r files [-F files] [name]&lt;BR /&gt;        passwd -r files [-e [shell]] [-gh] [name]&lt;BR /&gt;        passwd -r files -s [-a]&lt;BR /&gt;        passwd -r files -s [name]&lt;BR /&gt;        passwd -r files [-d|-l] [-f] [-n min] [-w warn] [-x max] name&lt;BR /&gt;        passwd -r nis [-e [shell]] [-gh] [name]&lt;BR /&gt;        passwd -r nisplus [-e [shell]] [-gh] [-D domain] [name]&lt;BR /&gt;        passwd -r nisplus -s [-a]&lt;BR /&gt;        passwd -r nisplus -s [-D domain] [name]&lt;BR /&gt;        passwd -r nisplus [-l] [-f] [-n min] [-w warn] [-x max] [-D domain] [nam&lt;BR /&gt;e]&lt;BR /&gt;        passwd -r dce [-e [shell]] [-gh] [name]&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do you guys know why? Thank you!&lt;BR /&gt;&lt;BR /&gt;ajk</description>
      <pubDate>Wed, 18 Sep 2002 05:10:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653777#M46701</guid>
      <dc:creator>ajk_3</dc:creator>
      <dc:date>2002-09-18T05:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Password script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653778#M46702</link>
      <description>ajk&lt;BR /&gt;&lt;BR /&gt;Are you using 'cat userlist' or `cat userlist`? The quotes could be your problem.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 18 Sep 2002 08:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-script/m-p/2653778#M46702</guid>
      <dc:creator>Michael Campbell</dc:creator>
      <dc:date>2002-09-18T08:18:22Z</dc:date>
    </item>
  </channel>
</rss>

