<?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: /etc/passwd 0 bytes !!! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532858#M25429</link>
    <description>Thanks all for your help, I knew I could do it by rebooting in single user mode, I just didn't want to if I didn't have to.  I did end up rebooting, adding the root user and then getting the file from elswhere.&lt;BR /&gt;&lt;BR /&gt;Why did it happen?  Someone was *trying* to ftp the file from the #2 machine to the #3 machine but accidently ftp'd it to itself - which of course zeroed it out.&lt;BR /&gt;&lt;BR /&gt;In order to reboot since I could not login, I did a TOC on the back.  Was there a safer/easier way to do this?</description>
    <pubDate>Fri, 25 May 2001 14:18:37 GMT</pubDate>
    <dc:creator>Tracey</dc:creator>
    <dc:date>2001-05-25T14:18:37Z</dc:date>
    <item>
      <title>/etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532849#M25420</link>
      <description>My /etc/passwd file got wiped out.  I have users who are logged on, but none with permissions for me to write the root record to the file. Permissions are readonly except for user 0, which of course isn't there.  No one can log in.  Anyway I can get one of the logged in users permission to change the file??&lt;BR /&gt;&lt;BR /&gt;Help!</description>
      <pubDate>Fri, 25 May 2001 11:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532849#M25420</guid>
      <dc:creator>Tracey</dc:creator>
      <dc:date>2001-05-25T11:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532850#M25421</link>
      <description>Hi Tracey!&lt;BR /&gt;Did someone clean the file?? One way to solve it is restarting the system in single user mode.&lt;BR /&gt;If the file doesn't exist at all, you can allways create a new one.&lt;BR /&gt;&lt;BR /&gt;sorry, but I don't know any other way to solve it.&lt;BR /&gt;hope this helps.</description>
      <pubDate>Fri, 25 May 2001 11:13:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532850#M25421</guid>
      <dc:creator>Pedro Sousa</dc:creator>
      <dc:date>2001-05-25T11:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532851#M25422</link>
      <description>&lt;BR /&gt;There is no legal way to write to /etc/passwd from a non-root priveleged user. As Pedro said, you will need to reboot in single user mode and recreate it/restore it.&lt;BR /&gt;&lt;BR /&gt;/etc/passwd doesnt just get zeroed by itself. Someone or something did it. You should try to find out who/what. There are a couple of /etc/passwd patches out there - do you have the latest ones installed, maybe its a bug.&lt;BR /&gt;&lt;BR /&gt;Is there an /etc/passwd.tmp or /etc/passwd.* file (maybe someone made a backup of it or vipw left a temp copy) - but you will still need to reboot in single user mode to fix it.</description>
      <pubDate>Fri, 25 May 2001 11:25:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532851#M25422</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-05-25T11:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532852#M25423</link>
      <description>Hi again.&lt;BR /&gt;check this one: &lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x5bc253921f1ad5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x5bc253921f1ad5118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll find some other possibilities like: booting in maintenance mode (hpux -lm) or from the recovery CD.&lt;BR /&gt;good luck.</description>
      <pubDate>Fri, 25 May 2001 11:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532852#M25423</guid>
      <dc:creator>Pedro Sousa</dc:creator>
      <dc:date>2001-05-25T11:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532853#M25424</link>
      <description>Tracey:&lt;BR /&gt;&lt;BR /&gt;Check permissions of /etc.&lt;BR /&gt;&lt;BR /&gt;If /etc/passwd got wiped out by an user other than root, it may happened due to a writeable /etc for others than root or bin. If /etc is writeable for others you could restore passwd without booting even if passwd is writeable for no one.&lt;BR /&gt;&lt;BR /&gt;After restoring /etc/passwd check permissions of /etc to be&lt;BR /&gt;dr-xr-xr-x  31 bin   bin  6144 May 25 13:43 /etc</description>
      <pubDate>Fri, 25 May 2001 11:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532853#M25424</guid>
      <dc:creator>Thomas Schler_1</dc:creator>
      <dc:date>2001-05-25T11:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532854#M25425</link>
      <description>Hi Tracy,&lt;BR /&gt;&lt;BR /&gt;if you have set up a remote authentication&lt;BR /&gt;(host.equiv or rhosts) you might be able to rlogin.&lt;BR /&gt;&lt;BR /&gt;Other chance: do you have omni back installed and write access to /opt/omni/bin ?&lt;BR /&gt;You could put a script there, that copies you a new /etc/passwd and execute it as a pre-exec-script to a backup and execute the backup.&lt;BR /&gt;&lt;BR /&gt;Do not know if this helps, but if it helps, you should change it, because it is not supposed to work :)&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 25 May 2001 11:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532854#M25425</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-05-25T11:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532855#M25426</link>
      <description>No, he can't even rlogin without a root entry in the first position of the passwd file.&lt;BR /&gt;&lt;BR /&gt;The only option is to go single user mode and restore the file or at least add the root user and reboot.  After the reboot, he can restore from another machine if that is where the backup is.</description>
      <pubDate>Fri, 25 May 2001 12:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532855#M25426</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-05-25T12:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532856#M25427</link>
      <description>If you have a make_recovery:&lt;BR /&gt;#mt -t /dev/rmt/0mn fsr 1&lt;BR /&gt;#tar xv /etc/passwd</description>
      <pubDate>Fri, 25 May 2001 12:36:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532856#M25427</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-05-25T12:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532857#M25428</link>
      <description>Hi Tracey,&lt;BR /&gt;&lt;BR /&gt;Check out :&lt;BR /&gt;&lt;BR /&gt;Find or remender a script that run in root crontab, date and hour.&lt;BR /&gt;modifies this script so that it change the permissions in the /etc/passwd for 777.&lt;BR /&gt;In script put line as below :&lt;BR /&gt;&lt;BR /&gt;chmod 777 /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Wait the script run and execute the alteration.&lt;BR /&gt;This way you will have permissions for change it and re-create it !&lt;BR /&gt;&lt;BR /&gt;Then....you are inside..!!!!&lt;BR /&gt;&lt;BR /&gt;I hope help you.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;Abel Berger&lt;BR /&gt;</description>
      <pubDate>Fri, 25 May 2001 13:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532857#M25428</guid>
      <dc:creator>Abel Berger</dc:creator>
      <dc:date>2001-05-25T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532858#M25429</link>
      <description>Thanks all for your help, I knew I could do it by rebooting in single user mode, I just didn't want to if I didn't have to.  I did end up rebooting, adding the root user and then getting the file from elswhere.&lt;BR /&gt;&lt;BR /&gt;Why did it happen?  Someone was *trying* to ftp the file from the #2 machine to the #3 machine but accidently ftp'd it to itself - which of course zeroed it out.&lt;BR /&gt;&lt;BR /&gt;In order to reboot since I could not login, I did a TOC on the back.  Was there a safer/easier way to do this?</description>
      <pubDate>Fri, 25 May 2001 14:18:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532858#M25429</guid>
      <dc:creator>Tracey</dc:creator>
      <dc:date>2001-05-25T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532859#M25430</link>
      <description>A TOC is one way, you could also have done a CTRL-B and done an RS, or a TOC from there.</description>
      <pubDate>Fri, 25 May 2001 14:20:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532859#M25430</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-05-25T14:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532860#M25431</link>
      <description>The C110 has a power off interrupt associated with the power button, the 715 does not.&lt;BR /&gt;&lt;BR /&gt;The newer machines are supposed to have this feature.&lt;BR /&gt;&lt;BR /&gt;This power down interrupt feature actually is a short shutdown that kills all the processes and then turns off the power.&lt;BR /&gt;&lt;BR /&gt;It will not work if a realtime process goes nuts since the interrupt never gets in.</description>
      <pubDate>Fri, 25 May 2001 17:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532860#M25431</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-05-25T17:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532861#M25432</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It is too late for this time but next time - :) - you can get an original copy of passwd from /usr/newconfig/etc.  It won't have your users but it will have the system accounts.  It will be enough keep you going until you can recover the real passwd from backup.&lt;BR /&gt;&lt;BR /&gt;--Bruce</description>
      <pubDate>Sat, 26 May 2001 01:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532861#M25432</guid>
      <dc:creator>Bruce Regittko_1</dc:creator>
      <dc:date>2001-05-26T01:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532862#M25433</link>
      <description>Hi,&lt;BR /&gt;I just had the same problem 2 days ago at client's site.  System acting strange &amp;amp; login impossible: /etc/passwd was resize to 0 bytes!&lt;BR /&gt;The system seemed to have hit the nfile kernel parameter :(  The 'File table full' error in the syslog had the same timestamp as the empty /etc/passwd file, so I relate both problems.&lt;BR /&gt;I was still logged on &amp;amp; I have special files like /etc/passwd, /etc/groups, /etc/inetd.conf and may more copied daily to a NT, so I could copy passwd file quickly back to the Unix box.&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Sat, 02 Jun 2001 07:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532862#M25433</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-06-02T07:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/passwd 0 bytes !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532863#M25434</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   one interesting thing i came to know when i was searching patches, according to that, if u have a file called /tmp/manxxxxx (xxxxx -- numeric), linked to any file(in this case it may be /etc/passwd), when any process that owned by root having same id as 'xxxxx' it will wipe out all information in that file which is linked to /tmp/manxxxxx (here /etc/passwd) as it opens the file in write mode which causes the information wiped-out first.&lt;BR /&gt;&lt;BR /&gt;  Most appropriate way is to recover it from backup. Do u have backup of it?.&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.</description>
      <pubDate>Sun, 03 Jun 2001 16:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-passwd-0-bytes/m-p/2532863#M25434</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-06-03T16:47:56Z</dc:date>
    </item>
  </channel>
</rss>

