<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Ftar</id>
	<title>Linux/tar - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Ftar"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/tar&amp;action=history"/>
	<updated>2026-05-07T04:22:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/tar&amp;diff=4783&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;== Don&#039;t Preserver Owner ==  Problem: &lt;blockquote&gt; I&#039;d like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there does...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/tar&amp;diff=4783&amp;oldid=prev"/>
		<updated>2018-06-29T00:24:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Don&amp;#039;t Preserver Owner ==  Problem: &amp;lt;blockquote&amp;gt; I&amp;#039;d like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there does...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Don&amp;#039;t Preserver Owner ==&lt;br /&gt;
&lt;br /&gt;
Problem:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
I&amp;#039;d like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there doesn&amp;#039;t seem to be any way to not do that? (There is a --numeric-owner option for tar which seems to ignore the user name, but still keeps the user ID.)&lt;br /&gt;
&lt;br /&gt;
Doesn&amp;#039;t that mean that .tar.gz is a poor choice for file distribution as my system probably is the only one with my user ID and my user name? Is .7z a better format for file distribution, or do you have any other recommendation?&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Generally .tar.gz is a usable file distribution format. GNU tar allows you to replace owner, group and permissions with other values when adding files to the archive.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 tar -c -f archive.tar --owner=0 --group=0 .&lt;br /&gt;
&lt;br /&gt;
Ref: tar without preserving user - Unix &amp;amp; Linux Stack Exchange - https://unix.stackexchange.com/questions/285237/tar-without-preserving-user&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>