<?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: preserve the ownership in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876603#M99772</link>
    <description>The rule (like mentioned by others) is ..&lt;BR /&gt;1- Ownership of a file can only be changed by the owner of the file or by root.&lt;BR /&gt;To be consistent, as user "userB" make a copy of the file first so that "userB" owns that copied file and then gzip it.</description>
    <pubDate>Wed, 08 Jan 2003 02:30:23 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2003-01-08T02:30:23Z</dc:date>
    <item>
      <title>preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876600#M99769</link>
      <description>After the user zip the file , then the owner of the zip file will be changed , how to preserve the owership ? thx&lt;BR /&gt;&lt;BR /&gt;host//tmp&amp;gt; ll abc.prn&lt;BR /&gt;-rwxrwxrwx  userA  abc.prn&lt;BR /&gt;host//tmp&amp;gt; whoami&lt;BR /&gt;host//tmp&amp;gt; userB&lt;BR /&gt;host//tmp&amp;gt; gzip abc.prn&lt;BR /&gt;gzip: abc.prn: Operation not permitted&lt;BR /&gt;host//tmp&amp;gt; ll abc.prn*&lt;BR /&gt;host//tmp&amp;gt; -rwxrwxrwx userA abc.prn &lt;BR /&gt;-rwxrwxrwx userB abc.prn.gz&lt;BR /&gt;How to let the owner of the file "abc.prn.gz" is userA (except change it by root) ? thx</description>
      <pubDate>Wed, 08 Jan 2003 02:19:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876600#M99769</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2003-01-08T02:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876601#M99770</link>
      <description>Is there any reason why you don't want "userB" to change the ownership of the file to "userA"?&lt;BR /&gt;&lt;BR /&gt;As long as userB owns the file, he can change the ownership of the file to anything.&lt;BR /&gt;&lt;BR /&gt;$whoami&lt;BR /&gt;userB&lt;BR /&gt;$ll abc.*.gz&lt;BR /&gt;-rwxrwxrwx userB abc.prn.gz&lt;BR /&gt;$chown userA abc.prn.gz&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2003 02:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876601#M99770</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-01-08T02:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876602#M99771</link>
      <description>I don't think there is a way to retain the ownership.&lt;BR /&gt;&lt;BR /&gt;When you gzip, or compress, a file, you are creating a NEW file.  The gzip process reads the contents of the non-compressed file, pushes the data through the compression routines and writes it out to a new file.&lt;BR /&gt;&lt;BR /&gt;When you create the new file, it will be owned by the user doing the gzip.  The only way to have the owner be userA would be to do a 'chown userA abc.prn.gz' after the file is gzip'ed.</description>
      <pubDate>Wed, 08 Jan 2003 02:26:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876602#M99771</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-01-08T02:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876603#M99772</link>
      <description>The rule (like mentioned by others) is ..&lt;BR /&gt;1- Ownership of a file can only be changed by the owner of the file or by root.&lt;BR /&gt;To be consistent, as user "userB" make a copy of the file first so that "userB" owns that copied file and then gzip it.</description>
      <pubDate>Wed, 08 Jan 2003 02:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876603#M99772</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-01-08T02:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876604#M99773</link>
      <description>When you unzip a file using a user it creates a new file with that username as owner.&lt;BR /&gt;&lt;BR /&gt;Log in as Userb ans gzip the file.</description>
      <pubDate>Wed, 08 Jan 2003 03:07:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876604#M99773</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-01-08T03:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876605#M99774</link>
      <description>check this unzip utility from hp porting center.&lt;BR /&gt;&lt;BR /&gt;check the -X option.This should be what you are looking for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Misc/unzip-5.50/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Misc/unzip-5.50/&lt;/A&gt;</description>
      <pubDate>Wed, 08 Jan 2003 03:12:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876605#M99774</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-01-08T03:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876606#M99775</link>
      <description>sorry unzip is for .zip extension files.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2003 03:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876606#M99775</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-01-08T03:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876607#M99776</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks all suggestion , I tried I can run chown to change owner to original owner on UNIX box , but can't do the same thing at Linux , can suggest how to do it on Linux ? thx.</description>
      <pubDate>Wed, 08 Jan 2003 03:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876607#M99776</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2003-01-08T03:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: preserve the ownership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876608#M99777</link>
      <description>chown own is for changing the ownership of a file and it can be executed only by the owner of the file or root.&lt;BR /&gt;&lt;BR /&gt;Linux also has the same policy.&lt;BR /&gt;Use root to change the ownership or be the owner of the file.&lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Wed, 08 Jan 2003 03:50:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preserve-the-ownership/m-p/2876608#M99777</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-01-08T03:50:56Z</dc:date>
    </item>
  </channel>
</rss>

