<?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: Help needed with batch password script - urgent(!) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137815#M451771</link>
    <description>Running 'pwck' did it - we had a user incorrectly setup and I removed it. All looks well. Thanks to all.</description>
    <pubDate>Tue, 28 Oct 2008 10:50:03 GMT</pubDate>
    <dc:creator>Simon R Wootton</dc:creator>
    <dc:date>2008-10-28T10:50:03Z</dc:date>
    <item>
      <title>Help needed with batch password script - urgent(!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137809#M451765</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;We use a script called 'batchpw' which allows us to add users to the system in batches. Since last week, this script has started to fail and yet we're not aware of anything changing.&lt;BR /&gt;&lt;BR /&gt;I have attached a screen shot of the error(s) when  the script is run and also the script itself.&lt;BR /&gt;&lt;BR /&gt;If anyone can solve this, there's 10 points waiting !!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Simon&lt;BR /&gt;&lt;BR /&gt;RP7410 running HPUX11i</description>
      <pubDate>Tue, 28 Oct 2008 09:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137809#M451765</guid>
      <dc:creator>Simon R Wootton</dc:creator>
      <dc:date>2008-10-28T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with batch password script - urgent(!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137810#M451766</link>
      <description>&lt;BR /&gt;Hi Simon,&lt;BR /&gt;&lt;BR /&gt;It seems the account which is propagating/creating the new users is not valid .If you could post the script it will be better to diagnoise the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Aneesh</description>
      <pubDate>Tue, 28 Oct 2008 09:40:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137810#M451766</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2008-10-28T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with batch password script - urgent(!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137811#M451767</link>
      <description>Hi Simon,&lt;BR /&gt;&lt;BR /&gt;One correction to the above reply (becoz I couldn`t get the screen properly at  first time)&lt;BR /&gt;&lt;BR /&gt;The error is because you are not specifying the userid for creating the user,that could be the reason it is not creating new user.&lt;BR /&gt;&lt;BR /&gt;Aneesh</description>
      <pubDate>Tue, 28 Oct 2008 09:47:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137811#M451767</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2008-10-28T09:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with batch password script - urgent(!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137812#M451768</link>
      <description>Why don't you do just:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;max=$(cut -d : -f 3</description>
      <pubDate>Tue, 28 Oct 2008 10:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137812#M451768</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2008-10-28T10:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with batch password script - urgent(!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137813#M451769</link>
      <description>or &lt;BR /&gt;findmaxuid()&lt;BR /&gt;{&lt;BR /&gt;    cut -d : -f 3 }&lt;BR /&gt;&lt;BR /&gt;((newuid=$(findmaxuid)+1))&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2008 10:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137813#M451769</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2008-10-28T10:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with batch password script - urgent(!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137814#M451770</link>
      <description>Hmm, the error messages indicate trouble at lines 4 and 137 of the script. Since you've copy-pasted the script into a MSWord document and it has a blank line between each line of the script, it is hard to find the correct line. An screenshot and the script enclosed in a .zip file would have been much better... but I digress.&lt;BR /&gt;&lt;BR /&gt;The errors seem to indicate problems with parsing the existing contents of the password file. There might be a malformed line in the /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;Please run "pwck". Some "Login directory not found" errors from system directories are normal, but any other errors might indicate trouble.&lt;BR /&gt;&lt;BR /&gt;By the way, your script is changing /etc/passwd without using the standard lock /etc/ptmp. This is asking for trouble.&lt;BR /&gt;&lt;BR /&gt;Your script should create /etc/ptmp as it starts and remove it after it has appended the new users to the /etc/passwd file. This would ensure that no other tools will modify /etc/passwd while the critical part of the script is running.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 28 Oct 2008 10:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137814#M451770</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-10-28T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with batch password script - urgent(!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137815#M451771</link>
      <description>Running 'pwck' did it - we had a user incorrectly setup and I removed it. All looks well. Thanks to all.</description>
      <pubDate>Tue, 28 Oct 2008 10:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-with-batch-password-script-urgent/m-p/5137815#M451771</guid>
      <dc:creator>Simon R Wootton</dc:creator>
      <dc:date>2008-10-28T10:50:03Z</dc:date>
    </item>
  </channel>
</rss>

