<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: OS X file permissions issue</title>
	<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue/</link>
	<description>Comments on Ask MetaFilter post OS X file permissions issue</description>
	<pubDate>Tue, 20 May 2008 15:53:05 -0800</pubDate>
	<lastBuildDate>Tue, 20 May 2008 15:53:05 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: OS X file permissions issue</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue</link>	
		<description>OS X Sites folder permissions and a question about flags on the files in bash. What gives? &lt;br /&gt;&lt;br /&gt; I use my MacBook Pro as a test server, running Apache. I sync my files (two-way sync, using Chronosync) between my Mac and my home Windows system. Sometimes after a sync my test site breaks - I don&apos;t have permission to access my own files. Sure, a chmod -R 755 * on my Sites folder fixes it, but why is it happening? I don&apos;t need to have files at 755 for them to work on my Linux server, so why does the Mac refuse to deliver any CSS or javascript files unless execute permissions are set?&lt;br&gt;
&lt;br&gt;
Finally, this one is driving me nuts: What&apos;s the extra flag at the end of the file for in Terminal? When I check file permissions with ls -al some files show as -rwxr-xr-x+, others show as -rwxr-xr-x@, and some are -rwxr-xr-x with no + or @ appended. Nothing I&apos;ve been able to find online explains what the @ or + flags mean, or why they may be appended to some files but not others. I&apos;ve never seen similar flags on any Linux system I&apos;ve used. Should I even care?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.91968</guid>
		<pubDate>Tue, 20 May 2008 15:41:37 -0800</pubDate>
		<dc:creator>caution live frogs</dc:creator>
		
			<category>OSX</category>
		
			<category>Apache</category>
		
			<category>filepermissions</category>
		
			<category>bash</category>
		
			<category>permissions</category>
		
	</item> <item>
		<title>By: GuyZero</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue#1347407</link>	
		<description>Apache runs as a different user and can&apos;t see the files in your Sites directory unless the directory is readable which is what the x flag is used for for directories. Generally to read a file that is owned by a different user you need perms for both the file (r) and the directory holding the file (x).&lt;br&gt;
&lt;br&gt;
I dunno about the @ signs. Huh.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.91968-1347407</guid>
		<pubDate>Tue, 20 May 2008 15:53:05 -0800</pubDate>
		<dc:creator>GuyZero</dc:creator>
	</item><item>
		<title>By: GuyZero</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue#1347409</link>	
		<description>Also, why it works on Linux - my guess is that your Apache process there is running as a different user, possibly root, which means that it can read everything regardless of perms.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.91968-1347409</guid>
		<pubDate>Tue, 20 May 2008 15:54:06 -0800</pubDate>
		<dc:creator>GuyZero</dc:creator>
	</item><item>
		<title>By: Blazecock Pileon</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue#1347411</link>	
		<description>If Chronosync is using ftp or sftp (ssh) to synchronize files, you might look into &lt;a href=&quot;http://en.wikipedia.org/wiki/Umask&quot;&gt;umask&lt;/a&gt; settings for Chronosync, or perhaps contact their technical support for help with their adjustment. Once you have the right umask to allow world-readability (files) and world-read and world-execute (directories and scripts), directories and files will have the &lt;a href=&quot;http://en.wikipedia.org/wiki/File_system_permissions&quot;&gt;permissions&lt;/a&gt; set to allow web service.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.91968-1347411</guid>
		<pubDate>Tue, 20 May 2008 15:57:13 -0800</pubDate>
		<dc:creator>Blazecock Pileon</dc:creator>
	</item><item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue#1347412</link>	
		<description>The manual is your friend.  Really.&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;$ man ls&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
&lt;blockquote&gt;&lt;b&gt; The Long Format&lt;/b&gt;&lt;br&gt;
If the -l option is given, the following information is displayed for&lt;br&gt;
     each file: file mode, number of links, owner name, group name, number of&lt;br&gt;
     bytes in the file, abbreviated month, day-of-month file was last modi&lt;br&gt;
     fied, hour file last modified, minute file last modified, and the path&lt;br&gt;
     name.  In addition, for each directory whose contents are displayed, the&lt;br&gt;
     total number of 512-byte blocks used by the files in the directory is&lt;br&gt;
     displayed on a line by itself, immediately before the information for the&lt;br&gt;
     files in the directory.  &lt;b&gt;If the file or directory has extended&lt;br&gt;
     attributes, the permissions field printed by the -l option is followed by&lt;br&gt;
     a &apos;@&apos; character.  Otherwise, if the file or directory has extended security&lt;br&gt;
information, the permissions field printed by the -l option is followed by a &apos;+&apos; character.&lt;/b&gt;&lt;/blockquote&gt;&lt;br&gt;
&lt;br&gt;
As to your problem with Chronosync, sorry, I&apos;ve never heard of it or used it, so I can&apos;t suggest why it doesn&apos;t work.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.91968-1347412</guid>
		<pubDate>Tue, 20 May 2008 15:57:17 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item><item>
		<title>By: procrastination</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue#1347498</link>	
		<description>The extended attributes are a new thing. They provide a much finer-grained access control to files and directories. You can see what they are by doing a &apos;ls -le&apos;. Probably something is getting set in the extended attributes that is causing your problem. You should be able to see in the directory listing what is going on. If you post a follow-up here of what the ls command above give you, maybe we can help, but you can also do a &apos;man chmod&apos; and read the section titled &apos;ACL MANIPULATION OPTIONS&apos; to see how to change them.&lt;br&gt;
&lt;br&gt;
I am sure they are nice, but so far they have been a pain in the butt for me.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.91968-1347498</guid>
		<pubDate>Tue, 20 May 2008 17:17:24 -0800</pubDate>
		<dc:creator>procrastination</dc:creator>
	</item><item>
		<title>By: nomisxid</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue#1347736</link>	
		<description>One of the difficulties in mixing unix and windows files systems is the ACL.  Unix only knows three types of permissions-ownership,  the file-owner, the group-owner, and everyone-else.  Windows keeps a full spectrum of permissions for any number of users and groups.    If I try to transfer a windows file owned by tom and jane, most unix can&apos;t natively support that concept.  &lt;br&gt;
&lt;br&gt;
And there&apos;s another problem...username mapping.  At the filesystem level, the computer doesn&apos;t store an actual username, it stores a numerical id.  If your sync process simply copies that UID, and tom has a different uid on one system than he does on the other, suddenly the files aren&apos;t owned by tom anymore.  Quite possibly by no one on the destination system.  You&apos;ll see that in an ls output where one of the columns just has a number instead of a name.&lt;br&gt;
&lt;br&gt;
I suspect your problem lies somewhere between the two pits of despair.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.91968-1347736</guid>
		<pubDate>Tue, 20 May 2008 21:52:39 -0800</pubDate>
		<dc:creator>nomisxid</dc:creator>
	</item><item>
		<title>By: caution live frogs</title>
		<link>http://ask.metafilter.com/91968/OS-X-file-permissions-issue#1348160</link>	
		<description>You know, I did try searching the manual pages (web though, not via command line)... but it&apos;s difficult to search for &quot;+&quot; or &quot;@&quot; on the web. My fault. Checking the included man pages on my Mac gives me:&lt;br&gt;
&quot;If the file or directory has extended security information, the permissions field printed by the -l option is followed by a &apos;+&apos; character.&quot; Nothing about the @ though.&lt;br&gt;
&lt;br&gt;
As for -le, that&apos;s one I didn&apos;t try before. Doing so shows me that all files marked with &quot;+&quot; give me &quot;0: group:everyone deny delete&quot; as extended information. Even more fun, chmod -a and chmod -a# won&apos;t remove this permission, as bash reports that the ACL doesn&apos;t exist in the first place.&lt;br&gt;
&lt;br&gt;
Apparently the Get Info GUI thing in OS X is borked in Leopard; it at some point propagated all ACLs from the default undeletable profile folder (in this case Sites) to all enclosed subfolders. To remove the flags I had to manually move every folder and subfolder, creating a new folder with the same name, moving contents, deleting original, moving new one back. Major pain. Needed to authenticate as root for every delete. Really wish that Leopard had a GUI for the ACLs that actually worked.&lt;br&gt;
&lt;br&gt;
Thanks all.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.91968-1348160</guid>
		<pubDate>Wed, 21 May 2008 09:03:41 -0800</pubDate>
		<dc:creator>caution live frogs</dc:creator>
	</item>
	</channel>
</rss>
