<?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: Resume the file owner in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719443#M660302</link>
    <description>&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;1) The file are in one single path , no sub-diectory &lt;BR /&gt;2) the original files owner are different users ( not just one single user ) , so I think chown is not work in my case . &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;if you say so -&amp;gt; YES.&lt;BR /&gt;&lt;BR /&gt;if your satisfied with answers / suggestion provided.. pls assign points</description>
    <pubDate>Tue, 30 Nov 2010 08:22:59 GMT</pubDate>
    <dc:creator>Johnson Punniyalingam</dc:creator>
    <dc:date>2010-11-30T08:22:59Z</dc:date>
    <item>
      <title>Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719438#M660297</link>
      <description>I have a path that have many files in it , I was mistakely changed the owner of all files to another user id , I want to resume it to originial user , I have restored all files to the server ( another path )  ,  but it is  waste of time to resume it one by one , except overwrite these files from backup , can advise what can i do ? thx</description>
      <pubDate>Tue, 30 Nov 2010 06:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719438#M660297</guid>
      <dc:creator>ivy1234</dc:creator>
      <dc:date>2010-11-30T06:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719439#M660298</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;use &lt;BR /&gt;&lt;BR /&gt;chown -R username:group dirname&lt;BR /&gt;&lt;BR /&gt;so that it will change for all sud dir and files inside  that main dir.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;MC&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Nov 2010 07:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719439#M660298</guid>
      <dc:creator>madhuchakkaravarthy</dc:creator>
      <dc:date>2010-11-30T07:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719440#M660299</link>
      <description>&amp;gt;&amp;gt;except overwrite these files from backup , can advise what can i do ?&lt;BR /&gt;&lt;BR /&gt;overwrite option from backup will be accurate.&lt;BR /&gt;&lt;BR /&gt;unless (chown -R Recursively change the owner or group . but if child folders do not same owner &amp;amp; group will be bit difficult you need eye-ball)</description>
      <pubDate>Tue, 30 Nov 2010 07:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719440#M660299</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-11-30T07:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719441#M660300</link>
      <description>Thx reply ,&lt;BR /&gt;&lt;BR /&gt;1) The file are in one single path , no sub-diectory &lt;BR /&gt;2) the original files owner are different users ( not just one single user ) , so I think chown is not work in my case .&lt;BR /&gt;&lt;BR /&gt;eg .&lt;BR /&gt;original files&lt;BR /&gt;==========&lt;BR /&gt;drwxrwxrwx    2 user1   EDP                36K Nov 30 14:09 file1&lt;BR /&gt;-rwxrwxrwx    1 user2   EDP                 0 Feb 18  2010 file2 &lt;BR /&gt;-rwxrwxrwx    1 user3   EDP                 0 Feb 18  2010 file2 &lt;BR /&gt;&lt;BR /&gt;Now file&lt;BR /&gt;drwxrwxrwx    2 root   EDP                36K Nov 30 14:09 file1&lt;BR /&gt;-rwxrwxrwx    1 root   EDP                 0 Feb 18  2010 file2 &lt;BR /&gt;-rwxrwxrwx    1 root   EDP                 0 Feb 18  2010 file2 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I would like is to change the file owner back to original , but do not want to overwrite the files .&lt;BR /&gt;&lt;BR /&gt;Thx&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Nov 2010 07:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719441#M660300</guid>
      <dc:creator>ivy1234</dc:creator>
      <dc:date>2010-11-30T07:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719442#M660301</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;...to change the file owner back to original...&lt;BR /&gt;&lt;BR /&gt;In this case (you specified that you do not want to overwrite the files from backup), you do not have any option except to manually chown every single file to the desired owner/group. The correct ownership you could find out from the most recent backup available.&lt;BR /&gt;&lt;BR /&gt;You could make a script to read the ownerships of the files in the archive and restore those to the files saved on the server.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Horia.</description>
      <pubDate>Tue, 30 Nov 2010 07:49:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719442#M660301</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-11-30T07:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719443#M660302</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;1) The file are in one single path , no sub-diectory &lt;BR /&gt;2) the original files owner are different users ( not just one single user ) , so I think chown is not work in my case . &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;if you say so -&amp;gt; YES.&lt;BR /&gt;&lt;BR /&gt;if your satisfied with answers / suggestion provided.. pls assign points</description>
      <pubDate>Tue, 30 Nov 2010 08:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719443#M660302</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-11-30T08:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719444#M660303</link>
      <description>&amp;gt;I have restored all files to the server but it is waste of time to restore it one by one&lt;BR /&gt;&lt;BR /&gt;I have a script that may work.  See my reply to this thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1215123" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1215123&lt;/A&gt;&lt;BR /&gt;chown_script_A.sh &amp;amp; chown_script_B.sh&lt;BR /&gt;&lt;BR /&gt;Since the files are in a different path, you may have to change the scripts.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;1) The file are in one single path, no sub-directory&lt;BR /&gt;&lt;BR /&gt;This is also simple to change.  You can use awk or read to parse the output of ll(1) and generate the chown commands.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Horia: You could make a script to read the ownerships of the files in the archive&lt;BR /&gt;&lt;BR /&gt;Or read from the restored files.</description>
      <pubDate>Tue, 30 Nov 2010 11:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719444#M660303</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-30T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719445#M660304</link>
      <description>@Dennis: Or read from the restored files&lt;BR /&gt;&lt;BR /&gt;Or use tar -tv against the archive backup to list the file modes and owner information. No need to restore on a separate directory the archive (space/time consuming).&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Horia.</description>
      <pubDate>Tue, 30 Nov 2010 12:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719445#M660304</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-11-30T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Resume the file owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719446#M660305</link>
      <description>&amp;gt;Horia: No need to restore on a separate directory the archive&lt;BR /&gt;&lt;BR /&gt;Yes but ivy1234 said it was already done.</description>
      <pubDate>Tue, 30 Nov 2010 13:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resume-the-file-owner/m-p/4719446#M660305</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-30T13:39:32Z</dc:date>
    </item>
  </channel>
</rss>

