<?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 Preserve the owner in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877786#M3249</link>
    <description>After I gzip a file , then gunzip the file , the owner will be changed to me , how can I preserve the ownership to the original owner.&lt;BR /&gt;&lt;BR /&gt;eg. &lt;BR /&gt;&lt;BR /&gt;# ll abc.prn&lt;BR /&gt;-rw-rw-rw-   UserA    abc.prn&lt;BR /&gt;# whoami&lt;BR /&gt;UserB&lt;BR /&gt;# gzip abc.prn&lt;BR /&gt;# ll &lt;BR /&gt;-rw-rw-rw-   UserB    abc.prn.gz&lt;BR /&gt;#gunzip abc.prn.gz&lt;BR /&gt;#ll &lt;BR /&gt;-rw-rw-rw-   UserB    abc.prn&lt;BR /&gt;&lt;BR /&gt;How to preserve the owner of the file abc.prn to original owner ( UserA) ? Thx.</description>
    <pubDate>Thu, 09 Jan 2003 07:42:18 GMT</pubDate>
    <dc:creator>Cheung_2</dc:creator>
    <dc:date>2003-01-09T07:42:18Z</dc:date>
    <item>
      <title>Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877786#M3249</link>
      <description>After I gzip a file , then gunzip the file , the owner will be changed to me , how can I preserve the ownership to the original owner.&lt;BR /&gt;&lt;BR /&gt;eg. &lt;BR /&gt;&lt;BR /&gt;# ll abc.prn&lt;BR /&gt;-rw-rw-rw-   UserA    abc.prn&lt;BR /&gt;# whoami&lt;BR /&gt;UserB&lt;BR /&gt;# gzip abc.prn&lt;BR /&gt;# ll &lt;BR /&gt;-rw-rw-rw-   UserB    abc.prn.gz&lt;BR /&gt;#gunzip abc.prn.gz&lt;BR /&gt;#ll &lt;BR /&gt;-rw-rw-rw-   UserB    abc.prn&lt;BR /&gt;&lt;BR /&gt;How to preserve the owner of the file abc.prn to original owner ( UserA) ? Thx.</description>
      <pubDate>Thu, 09 Jan 2003 07:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877786#M3249</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2003-01-09T07:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877787#M3250</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Iam using gzip version 1.3 . There is no altering of ownership by gzip in my server. It perfectly preserves the ownership.&lt;BR /&gt;&lt;BR /&gt;try installing latest gzip.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jan 2003 08:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877787#M3250</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-01-09T08:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877788#M3251</link>
      <description>Hi U.SivaKumar ,&lt;BR /&gt;&lt;BR /&gt;Thx your response and valuable suggestoin, I am new comer to Linux and want to know more about it, how can I know the existing version in my system , eg . OS version , tools version ? thx.</description>
      <pubDate>Thu, 09 Jan 2003 08:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877788#M3251</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2003-01-09T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877789#M3252</link>
      <description>Where can I download the update zip program ? thx.</description>
      <pubDate>Thu, 09 Jan 2003 08:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877789#M3252</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2003-01-09T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877790#M3253</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;To find out your kernel version.&lt;BR /&gt;&lt;BR /&gt;#uname -r&lt;BR /&gt;&lt;BR /&gt;To find out version of utilities.&lt;BR /&gt;use -v or --version option .&lt;BR /&gt;&lt;BR /&gt;eg:-&lt;BR /&gt;&lt;BR /&gt;uname --version&lt;BR /&gt;&lt;BR /&gt;To --version or -v is not supported try this&lt;BR /&gt;&lt;BR /&gt;gzip --help&lt;BR /&gt;&lt;BR /&gt;See the first line of output.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jan 2003 09:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877790#M3253</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-01-09T09:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877791#M3254</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gzip.org" target="_blank"&gt;http://www.gzip.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Thu, 09 Jan 2003 09:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877791#M3254</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-01-09T09:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877792#M3255</link>
      <description>Hi U.SivaKumar ,&lt;BR /&gt;&lt;BR /&gt;I checked that my zip version is 1.3 , do you have other suggestion to fix my previous problem ? thx.</description>
      <pubDate>Thu, 09 Jan 2003 09:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877792#M3255</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2003-01-09T09:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877793#M3256</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;check the permissions , owner, file size of /bin/gzip .&lt;BR /&gt;compare with mine,&lt;BR /&gt;&lt;BR /&gt;-rwxr-xr-x    3 root     root        50652 Feb  8  2001 /bin/gzip&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jan 2003 09:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877793#M3256</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-01-09T09:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877794#M3257</link>
      <description>mine is &lt;BR /&gt;-rwxr-xr-x    3 root     root        51228 Aug 24  2001 /bin/gzip &lt;BR /&gt;&lt;BR /&gt;It seems newer than yours.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jan 2003 10:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877794#M3257</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2003-01-09T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877795#M3258</link>
      <description>hi ,&lt;BR /&gt;&lt;BR /&gt;there is difference in file size , download latest gzip from the link in my previous post.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jan 2003 10:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877795#M3258</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-01-09T10:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve the owner</title>
      <link>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877796#M3259</link>
      <description>This is trickier than it seems. If you run as the root user, ownership should be preserved by gzip/gunzip. But if UserB is not root, it will not.  The reason is that gzip/gunzip actually creates new files and must try to change ownership.  On recent versions of Linux, the system call for changing ownership only works for root.  (Check this with "man 2 chown".)  This is not true on some other operating systems, where it leads to interesting problems.&lt;BR /&gt;&lt;BR /&gt;Two ways to get around this are to create a setuid-root copy&lt;BR /&gt;of gzip (dangerous) or (better)  let UserB use sudo to run gzip as root.  If UserB can't be trusted, he is out of luck.</description>
      <pubDate>Fri, 10 Jan 2003 15:33:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/preserve-the-owner/m-p/2877796#M3259</guid>
      <dc:creator>Ralph Smith_5</dc:creator>
      <dc:date>2003-01-10T15:33:59Z</dc:date>
    </item>
  </channel>
</rss>

