<?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 Emergency script help please. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717613#M791528</link>
    <description>Hello We have a server that got its group and ownerships toasted and I need some emergency script help please.  We have extracted the ownerships from Data Proctector (Omniback) but some of the values are negative,unassigned 2 compliment I think for some odd reason.  Also there is some other data there too.  I want to replace the -number with the correct positive one I believe by adding 1 to the netagtive number then 65535 to the output to get the proper positive number.  There is some comments in the output.  Below is a text example of the data I am trying to correct.&lt;BR /&gt;&lt;BR /&gt;chown -h 15267:1039 '/home/'&lt;BR /&gt;chown -h -1400:1051  '/var'&lt;BR /&gt;#comment that may interfere with columns&lt;BR /&gt;&lt;BR /&gt;I need to be able to keep the same script and correct the negagive value for the owner to a valid pasitive value.  I am dealling with hundreds of thousands of file.&lt;BR /&gt;&lt;BR /&gt;Many Many Thanks.&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Jan 2006 16:39:34 GMT</pubDate>
    <dc:creator>generic_1</dc:creator>
    <dc:date>2006-01-25T16:39:34Z</dc:date>
    <item>
      <title>Emergency script help please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717613#M791528</link>
      <description>Hello We have a server that got its group and ownerships toasted and I need some emergency script help please.  We have extracted the ownerships from Data Proctector (Omniback) but some of the values are negative,unassigned 2 compliment I think for some odd reason.  Also there is some other data there too.  I want to replace the -number with the correct positive one I believe by adding 1 to the netagtive number then 65535 to the output to get the proper positive number.  There is some comments in the output.  Below is a text example of the data I am trying to correct.&lt;BR /&gt;&lt;BR /&gt;chown -h 15267:1039 '/home/'&lt;BR /&gt;chown -h -1400:1051  '/var'&lt;BR /&gt;#comment that may interfere with columns&lt;BR /&gt;&lt;BR /&gt;I need to be able to keep the same script and correct the negagive value for the owner to a valid pasitive value.  I am dealling with hundreds of thousands of file.&lt;BR /&gt;&lt;BR /&gt;Many Many Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jan 2006 16:39:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717613#M791528</guid>
      <dc:creator>generic_1</dc:creator>
      <dc:date>2006-01-25T16:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Emergency script help please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717614#M791529</link>
      <description>Hi Jeff:&lt;BR /&gt;&lt;BR /&gt;If the ownership of a file or directory is shown numerically, this merely suggests that the mapping of number-to-name cannot be made (usually through '/etc/passwd').&lt;BR /&gt;&lt;BR /&gt;Do you have an 'etc/passwd' file?  Are you running NIS?  Did you restore files, and if so to the correct server?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Jan 2006 17:11:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717614#M791529</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-25T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Emergency script help please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717615#M791530</link>
      <description>the UID is showing up negative that is not valid.  I am not worried about the entries in password and group.  Those are in tact.</description>
      <pubDate>Wed, 25 Jan 2006 17:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717615#M791530</guid>
      <dc:creator>generic_1</dc:creator>
      <dc:date>2006-01-25T17:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Emergency script help please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717616#M791531</link>
      <description>Hi (again) Jeff:&lt;BR /&gt;&lt;BR /&gt;I don't understand what you restored.  If is is only the directory take has the wrong ownership, do something like:&lt;BR /&gt;&lt;BR /&gt;# chown root:sys /home&lt;BR /&gt;&lt;BR /&gt;If you want to recursively 'chown' a directory (and all its subordinate contents!) use:&lt;BR /&gt;&lt;BR /&gt;# chown -R bin:bin /mydir&lt;BR /&gt;&lt;BR /&gt;Be careful here.&lt;BR /&gt;&lt;BR /&gt;Perhaps you want to find files whose ownership doesn't match login accounts on your server:&lt;BR /&gt;&lt;BR /&gt;# find /home -xdev -nouser&lt;BR /&gt;# find /home -xdev -nogroup&lt;BR /&gt;&lt;BR /&gt;Does this help?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Jan 2006 18:20:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717616#M791531</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-25T18:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Emergency script help please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717617#M791532</link>
      <description>Negative numbers (for that matter, all numbers) shown with the ll command are just a simple conversion of the integer value stored for the inode. Any number means there is *no* user name for that number in the password file. Again, there's nothing wrong with the invalid number--changing it to a positive value is just cosmetic,although if you change the user number so it matches a UID in /etc/passwd,yopu have just changed ownership for the file. And the same applies for the group number.&lt;BR /&gt; &lt;BR /&gt;Now if the affected files are supposed to be owned by a valid user, then you'll have to extract these filenames (with full path and user/group info) from your backup and create a sceript to change each file (chown/chgrp).</description>
      <pubDate>Wed, 25 Jan 2006 22:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/emergency-script-help-please/m-p/3717617#M791532</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-01-25T22:13:51Z</dc:date>
    </item>
  </channel>
</rss>

