<?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: useradd bug? &amp;quot;/etc/passwd file does not exist&amp;quot; and &amp;quot;/etc/passwd file busy -- try again&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409556#M202356</link>
    <description>Does pwck return anything interesting?&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/pwck -s&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Oct 2004 02:18:20 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2004-10-28T02:18:20Z</dc:date>
    <item>
      <title>useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409553#M202353</link>
      <description>Dear gurus,&lt;BR /&gt;&lt;BR /&gt;I got a couple TCB HP-UX 11.00 boxes which consistently fail on 'useradd' with a misleading error message. Of course /etc/passwd exists (and users can login normally, too), and useradd works on many other boxes with the same (replicated) /etc/passwd, /etc/group and TCB structure.&lt;BR /&gt;&lt;BR /&gt;root@to173:/# useradd dummy&lt;BR /&gt;/etc/passwd file does not exist&lt;BR /&gt;root@to173:/#&lt;BR /&gt;root@to173:/# lsof /etc/passwd&lt;BR /&gt;COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME&lt;BR /&gt;pwgrd 12117 root 11r VREG 64,0x3 82241 4364 /etc/passwd&lt;BR /&gt;root@to173:/# /sbin/init.d/pwgr stop&lt;BR /&gt;pwgrd stopped&lt;BR /&gt;root@to173:/# lsof /etc/passwd&lt;BR /&gt;root@to173:/#&lt;BR /&gt;root@to173:/# useradd dummy&lt;BR /&gt;/etc/passwd file does not exist&lt;BR /&gt;&lt;BR /&gt;pwgrd seems to make no difference: running or not, same error.&lt;BR /&gt;&lt;BR /&gt;There is no leftover 'vipw', or any other process with a handle on /etc/passwd or /etc/group.&lt;BR /&gt;&lt;BR /&gt;However, the existence or not of /etc/.pwd.lock makes a small difference (regardless of where this file came from; I can just use 'touch'):&lt;BR /&gt;- the error message changes&lt;BR /&gt;- takes a few seconds to return (a timeout?), as opposed to immediate return in the first case.&lt;BR /&gt;&lt;BR /&gt;root@to173:/# lsof /etc/.pwd.lock&lt;BR /&gt;root@to173:/# lsof /etc/passwd&lt;BR /&gt;root@to173:/# lsof /etc/group&lt;BR /&gt;root@to173:/# useradd dummy&lt;BR /&gt;/etc/passwd file does not exist          &amp;lt;= ERROR #1&lt;BR /&gt;root@to173:/#&lt;BR /&gt;root@to173:/# rm /etc/.pwd.lock&lt;BR /&gt;root@to173:/# useradd dummy&lt;BR /&gt;/etc/passwd file busy -- try again       &amp;lt;= ERROR #2&lt;BR /&gt;root@to173:/#&lt;BR /&gt;root@to173:/# touch /etc/.pwd.lock&lt;BR /&gt;root@to173:/# useradd dummy&lt;BR /&gt;/etc/passwd file does not exist          &amp;lt;= ERROR #1, back again&lt;BR /&gt;&lt;BR /&gt;A similar thread: &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=261248" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=261248&lt;/A&gt; has some interesting suggestions, but no solution.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas? Thanks!</description>
      <pubDate>Thu, 28 Oct 2004 01:29:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409553#M202353</guid>
      <dc:creator>Thomas Pawlikaniec</dc:creator>
      <dc:date>2004-10-28T01:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409554#M202354</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There is one more file that affects /etc/passwd modifications. /etc/ptmp. If you have it, them move it as say /etc/ptmp.old and then try.&lt;BR /&gt;&lt;BR /&gt;Make sure there are no other commands running on the system like usermod etc., that will lock /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 28 Oct 2004 01:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409554#M202354</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-28T01:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409555#M202355</link>
      <description>Thanks for the speedy reply, Sri!&lt;BR /&gt;&lt;BR /&gt;I forgot to mention, no /etc/ptmp either...&lt;BR /&gt;&lt;BR /&gt;And, as the lack of output from lsof indicates, there appear to be no processes with open handles on /etc/passwd. However, quite a few processes got an open handle on /tcb/files/auth/system/default, including init itself.&lt;BR /&gt;&lt;BR /&gt;--TP</description>
      <pubDate>Thu, 28 Oct 2004 02:10:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409555#M202355</guid>
      <dc:creator>Thomas Pawlikaniec</dc:creator>
      <dc:date>2004-10-28T02:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409556#M202356</link>
      <description>Does pwck return anything interesting?&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/pwck -s&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2004 02:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409556#M202356</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-10-28T02:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409557#M202357</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;try searchin in the tech base, e.g. Document id: A5392162 or USECKBRC00008679&lt;BR /&gt;&lt;BR /&gt;or try these links:&lt;BR /&gt;&lt;A href="http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062950294" target="_blank"&gt;http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062950294&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;A href="http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062922674" target="_blank"&gt;http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062922674&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 28 Oct 2004 02:20:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409557#M202357</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-10-28T02:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409558#M202358</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have to have the file .pwd.lock and ensure the permissions are root:sys and 400.&lt;BR /&gt;&lt;BR /&gt;I guess 'pwck' 'grpck' and 'authck' may give some hints.&lt;BR /&gt;&lt;BR /&gt;Also try running 'tusc' along with your useradd command and see if you can find any clues out of it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 28 Oct 2004 03:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409558#M202358</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-28T03:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409559#M202359</link>
      <description>Do you have an /etc/nsswitch.conf file on the system? If so is there a passwd entry?</description>
      <pubDate>Thu, 28 Oct 2004 06:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409559#M202359</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2004-10-28T06:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409560#M202360</link>
      <description>Thanks for all the links &amp;amp; suggestions. Most of you pointed in a similar direction (btw: nsswitch.conf points to files, looks ok), and indeed, pwck and authck both show inconsistencies. But the game's not over, as pwck/authck show similar inconsistencies on machines where useradd works! read-on...&lt;BR /&gt;&lt;BR /&gt;On the other hand, the weird behaviour documented above between '/etc/.pwd.lock' and 'useradd' (or usermod) remains obscure.&lt;BR /&gt;&lt;BR /&gt;Most pwck warnings look rather harmless (empty fields), but authck's reported TCB vs. /etc/passwd diffs are more worrisome.&lt;BR /&gt;&lt;BR /&gt;There are some "expected differences": some old-time scripts delete TCB files for expired/deleted accounts on a server, but keep the passwd/group entry to identify (uid, gid) preserved and backed-up files. It did not seem to cause problems before, but those scripts obviously do not use useradd/userdel commands... Does anyone have experience with such a setup?&lt;BR /&gt;&lt;BR /&gt;In fact, similarly-looking TCB inconsistencies exist on machines where useradd works and those where it fails. Any clues on that?&lt;BR /&gt;&lt;BR /&gt;Our servers run a complex mix of critical applications and scripts, and touching such a fragile status quo is always a bit suicidal. I've seen too many horror stories involving the sloppy 'tsconvert -r' + 'tsconvert', (although suggested by HP). And 'pwconv' (basically a wrapper around 'tsconvert -u') is not more reassuring.&lt;BR /&gt;&lt;BR /&gt;So now, I wonder:&lt;BR /&gt;1] which TCB inconsistencies actually make useradd fail? and which are harmless?&lt;BR /&gt;2] What's the SAFEST way to fix everything authck complains about? is it doable with zero downtime?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;-- TP&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Oct 2004 08:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409560#M202360</guid>
      <dc:creator>Thomas Pawlikaniec</dc:creator>
      <dc:date>2004-10-29T08:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409561#M202361</link>
      <description>(off-topic) John, re: the links. I tried searching prior to possting but it never came up with the docs you pointed out. In fact, it seems only forums get searched -- is it possible I am missing some access rights? Yet I could access your links without problem (except on Americas' sub-site), so I guess I was just not searching in the right place? Any hints? Thanks!</description>
      <pubDate>Fri, 29 Oct 2004 08:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409561#M202361</guid>
      <dc:creator>Thomas Pawlikaniec</dc:creator>
      <dc:date>2004-10-29T08:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: useradd bug? "/etc/passwd file does not exist" and "/etc/passwd file busy -- try again"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409562#M202362</link>
      <description>Hi again Thomas,&lt;BR /&gt;&lt;BR /&gt;to go to the tech base:&lt;BR /&gt;on this page, click on "maintenance and support for hp products".&lt;BR /&gt;On the following page click on "technical knowledge base": there you will then find a good  search tool for searching e.g. error messages.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Fri, 29 Oct 2004 11:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-bug-quot-etc-passwd-file-does-not-exist-quot-and-quot/m-p/3409562#M202362</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-10-29T11:42:04Z</dc:date>
    </item>
  </channel>
</rss>

