<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daily Relevance &#187; permissions</title>
	<atom:link href="http://www.dailyrelevance.com/tag/permissions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dailyrelevance.com</link>
	<description>All things relevant and interesting</description>
	<lastBuildDate>Thu, 15 Dec 2011 15:19:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CYGWIN File permissions problems</title>
		<link>http://www.dailyrelevance.com/tools/cygwin-file-permissions-problems</link>
		<comments>http://www.dailyrelevance.com/tools/cygwin-file-permissions-problems#comments</comments>
		<pubDate>Thu, 06 Aug 2009 14:27:19 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Relevance]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[file permissions]]></category>
		<category><![CDATA[nontsec]]></category>
		<category><![CDATA[ntsec]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.dailyrelevance.com/?p=147</guid>
		<description><![CDATA[I&#8217;m currently using cygwin to sync files between my Linux dev environment and windows. It&#8217;s not that often because I mainly develop on a Linux desktop anyways. However, I recently ran into some problems with rsync. I kept getting file permissions errors when using rsync to sync from my windows desktop to my Linux server. [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="margin-right: 5px; margin-bottom: 5px;" title="Cygwin" src="http://dessent.net/tmp/cygwin-logo-large.png" alt="" width="230" height="230" />I&#8217;m currently using cygwin to sync files between my Linux dev environment and windows.  <span id="more-147"></span>It&#8217;s  not that often because I mainly develop on a Linux desktop anyways.  However, I recently ran into some problems with rsync.  I kept getting file permissions errors when using rsync to sync from my windows desktop to my Linux server.</p>
<p>After some digging I found that when doing a &#8220;ls -l&#8221;, none of the file permissions were setup on any of the folders that were being synced.  After looking on the internet, all the articles lead me to believe I needed to set my CYGWIN variable to ntsec.</p>
<p>So I went ahead and set my CYGWIN variable to ntsec, but the problem was still there.  I had a little plus at the end of the file permissions list and none of them were set.  It looked something like this.</p>
<p>d&#8212;&#8212;&#8212;+</p>
<p>I had almost given up when I found an old program I was using before, which is a stripped down version of cygwin and rsync with a cmd file for doing the sync.  In there I discovered that they set the CYGWIN variable to nontsec!</p>
<p>So there it is, I set CYGWIN to nontsec and everything worked great!</p>
<p>For those of you who would like the steps to permanently fix this, here they are.</p>
<ol>
<li>Make sure you have vim or some other editor installed.</li>
<li>Edit your .bash_profile in your home directory.  $ vim ~/.bash_profile</li>
<li>Add this line to the bottom of the file:    export CYGWIN=&#8221;nontsec&#8221;</li>
<li>Save the file and quit.  for vim type :qw</li>
<li>Restart cygwin</li>
</ol>
<p>You should now see file permissions setup on all your directories and files!</p>
<p>I hope this helps out someone else who fould all the posts out there to be very confusing and not very informative!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.dailyrelevance.com/tools/cygwin-file-permissions-problems/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

