<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Copy File Permissions and Ownership to Another File in Linux	</title>
	<atom:link href="https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 09:11:25 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-972615</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Sat, 24 Feb 2018 08:31:46 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=28638#comment-972615</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-972299&quot;&gt;Alexey&lt;/a&gt;.

@Alexey

Your most welcome, once more. Thanks for following us.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-972299">Alexey</a>.</p>
<p>@Alexey</p>
<p>Your most welcome, once more. Thanks for following us.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alexey		</title>
		<link>https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-972299</link>

		<dc:creator><![CDATA[Alexey]]></dc:creator>
		<pubDate>Fri, 23 Feb 2018 05:57:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=28638#comment-972299</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-972114&quot;&gt;Aaron Kili&lt;/a&gt;.

Thank you again!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-972114">Aaron Kili</a>.</p>
<p>Thank you again!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-972114</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Thu, 22 Feb 2018 08:05:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=28638#comment-972114</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-971897&quot;&gt;Alexey&lt;/a&gt;.

@Alexey

You are welcome. 

And you can copy the permissions and ownership of &lt;strong&gt;CATALOG1&lt;/strong&gt; to &lt;strong&gt;CATALOG2&lt;/strong&gt;. Then use the &lt;code&gt;-p&lt;/code&gt; flag of the cp command to preserve permissions and ownership while copying files from CATALOG1 to CATALOG2 like this: 
&lt;pre&gt;
$ chown --reference=CATALOG1 CATALOG2
$ chmod --reference=CATALOG1 CATALOG2
$ cp -p ./CATALOG1/* ./CATALOG2/
&lt;/pre&gt;
I hope this makes sense to you.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-971897">Alexey</a>.</p>
<p>@Alexey</p>
<p>You are welcome. </p>
<p>And you can copy the permissions and ownership of <strong>CATALOG1</strong> to <strong>CATALOG2</strong>. Then use the <code>-p</code> flag of the cp command to preserve permissions and ownership while copying files from CATALOG1 to CATALOG2 like this: </p>
<pre>
$ chown --reference=CATALOG1 CATALOG2
$ chmod --reference=CATALOG1 CATALOG2
$ cp -p ./CATALOG1/* ./CATALOG2/
</pre>
<p>I hope this makes sense to you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alexey		</title>
		<link>https://www.tecmint.com/copy-file-permissions-and-ownership-to-another-file-in-linux/comment-page-1/#comment-971897</link>

		<dc:creator><![CDATA[Alexey]]></dc:creator>
		<pubDate>Wed, 21 Feb 2018 10:54:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=28638#comment-971897</guid>

					<description><![CDATA[Thank you for your article.

May I use the &quot;&lt;strong&gt;--reference=&lt;/strong&gt;&quot; key for folders, not only files?

For example, to copy permissions or owner on catalog &lt;strong&gt;CATALOG1&lt;/strong&gt; with all files located in this folder to &lt;strong&gt;CATALOG2&lt;/strong&gt;?]]></description>
			<content:encoded><![CDATA[<p>Thank you for your article.</p>
<p>May I use the &#8220;<strong>&#8211;reference=</strong>&#8221; key for folders, not only files?</p>
<p>For example, to copy permissions or owner on catalog <strong>CATALOG1</strong> with all files located in this folder to <strong>CATALOG2</strong>?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
