<?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 passwords in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388058#M198754</link>
    <description>I am setting up a new server. I want to set everyone's passwords back to something standard like 12345 and force them to change it the next time they log in. I know it's the -f to force a change, but how do I pass in the password without having to do wach one manually?</description>
    <pubDate>Mon, 27 Sep 2004 15:56:55 GMT</pubDate>
    <dc:creator>Angela Swyers_1</dc:creator>
    <dc:date>2004-09-27T15:56:55Z</dc:date>
    <item>
      <title>passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388058#M198754</link>
      <description>I am setting up a new server. I want to set everyone's passwords back to something standard like 12345 and force them to change it the next time they log in. I know it's the -f to force a change, but how do I pass in the password without having to do wach one manually?</description>
      <pubDate>Mon, 27 Sep 2004 15:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388058#M198754</guid>
      <dc:creator>Angela Swyers_1</dc:creator>
      <dc:date>2004-09-27T15:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388059#M198755</link>
      <description>Hi Angela,&lt;BR /&gt;&lt;BR /&gt;'/usr/sam/lbin/usermod.sam' will come in useful here. Once you added the users (You can use useradd command via a script), then do&lt;BR /&gt;&lt;BR /&gt;1. Set one user with the standard password.&lt;BR /&gt;2. Grab the encrypted password from /etc/passwd or /tcb/files/auth/&lt;FIRSTLETTER&gt;/login file&lt;BR /&gt;&lt;BR /&gt;#for user in $(cat your_user_list)&lt;BR /&gt;do&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p "&lt;ENCRYPTED_PASSWORD&gt;" $user&lt;BR /&gt;passwd -f $user&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/ENCRYPTED_PASSWORD&gt;&lt;/FIRSTLETTER&gt;</description>
      <pubDate>Mon, 27 Sep 2004 16:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388059#M198755</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-27T16:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388060#M198756</link>
      <description>you may do something like below: &lt;BR /&gt;&lt;BR /&gt;`awk -F: '{print $1}' /etc/passwd` &amp;gt;&amp;gt; /tmp/users.tmp&lt;BR /&gt;cat /tmp/users.tmp | while read users&lt;BR /&gt;do &lt;BR /&gt;echo $user: \c&lt;BR /&gt;passwd $user&lt;BR /&gt;passwd -f $user&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;It will ask you for password for all users in your system, you can discard using egrep -v "xx|xx..|xx"&lt;BR /&gt;or tail - &lt;FROM which="" line="" you="" line="" to="" print="" onward=""&gt; or sed also has option to do it. &lt;BR /&gt;I dont see any option to pass the password to passwd command through some input. &lt;BR /&gt;&lt;BR /&gt;Hope above helps&lt;BR /&gt;all the best&lt;BR /&gt;Prashant&lt;BR /&gt;&lt;/FROM&gt;</description>
      <pubDate>Mon, 27 Sep 2004 16:08:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388060#M198756</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-09-27T16:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388061#M198757</link>
      <description>just the make correction, delete : \c, instead just let that be echo $user. &lt;BR /&gt;&lt;BR /&gt;Prashant</description>
      <pubDate>Mon, 27 Sep 2004 16:23:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388061#M198757</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-09-27T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388062#M198758</link>
      <description>Try to set the password for one user get the encrypted password. Lets say its "XXXXX".&lt;BR /&gt;For your own saftey make a backup of the password file and then  use substitution s/:.*?:/XXXXX/g&lt;BR /&gt;this would change the password field for all the users. &lt;BR /&gt;-Goodluck&lt;BR /&gt;Govind</description>
      <pubDate>Mon, 27 Sep 2004 16:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388062#M198758</guid>
      <dc:creator>Govind_3</dc:creator>
      <dc:date>2004-09-27T16:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388063#M198759</link>
      <description>In addition to above said by Govind:&lt;BR /&gt;do a pwconv after that, that should match all entries in password file and /tcb. &lt;BR /&gt;&lt;BR /&gt;Hope above helps&lt;BR /&gt;Prashant</description>
      <pubDate>Mon, 27 Sep 2004 16:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388063#M198759</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-09-27T16:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388064#M198760</link>
      <description>If you have a linux box with Expect on it, this will be trivial. Expect is a tool that automates inherently interactive processes.&lt;BR /&gt;&lt;BR /&gt;Expect also comes with a tool called autoexpect which generates code (similar to Macro recording)</description>
      <pubDate>Mon, 27 Sep 2004 21:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388064#M198760</guid>
      <dc:creator>Rangarajan Radhakrishna</dc:creator>
      <dc:date>2004-09-27T21:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388065#M198761</link>
      <description>Hi Angela,&lt;BR /&gt;&lt;BR /&gt;i could think of something like :&lt;BR /&gt;&lt;BR /&gt;for i in `cat /etc/passwd|awk -F: '{print $1}'`&lt;BR /&gt;do&lt;BR /&gt;passwd -d -f $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Deletes PW for each user and forces hime to select a new one upon login&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Tue, 28 Sep 2004 01:57:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388065#M198761</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-09-28T01:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388066#M198762</link>
      <description>Hi Angela,&lt;BR /&gt;&lt;BR /&gt;assigning points is also a good thing, btw :-)&lt;BR /&gt;&lt;BR /&gt;I have assigned points to   8  of   104  responses to my questions. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Tue, 28 Sep 2004 02:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388066#M198762</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-09-28T02:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388067#M198763</link>
      <description>We can get standusers ( except system users like www etc ) as listusers | awk '{ print $1 }' &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your requirement can be done as,&lt;BR /&gt;&lt;BR /&gt;for user in `listusers | awk '{ print $1 }'`&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt; passwd -df $user&lt;BR /&gt; # Make a mail to user&lt;BR /&gt; echo "Null for passwd done on $user. You have to change it during login there" | mailx -s "passwd on `hostname` $user@yourdomain.com&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;We can not assign 12345 passwd to everybody there. For that we can keep them as NULL Passwd so that it will not be having passwd but during next login it will be asked to change the passwd.&lt;BR /&gt;&lt;BR /&gt;Note: Assign points to your every post / reply there so that you will get response for your query at once. See franky message there. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Tue, 28 Sep 2004 03:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwords/m-p/3388067#M198763</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-28T03:09:44Z</dc:date>
    </item>
  </channel>
</rss>

