<?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: How can I share a mounted NTFS volume over AFP?</title>
	<link>http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP/</link>
	<description>Comments on Ask MetaFilter post How can I share a mounted NTFS volume over AFP?</description>
	<pubDate>Sun, 15 Jun 2008 17:27:56 -0800</pubDate>
	<lastBuildDate>Sun, 15 Jun 2008 17:27:56 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How can I share a mounted NTFS volume over AFP?</title>
		<link>http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP</link>	
		<description>&lt;strong&gt;Networkfilter:&lt;/strong&gt; I have a NTFS volume mounted on my OS X Server box. I&apos;d like to access it over the net using AFP. It&apos;s not showing up as an available AFP share. What gives?
 &lt;br /&gt;&lt;br /&gt; The NTFS volume mounts fine on the server:&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
admin@os-x-server$ sudo mount_smbfs //user@windows-fileserver/SHARE ~/ntfsdir&lt;br&gt;
Password: os-x-server-password&lt;br&gt;
Password: windows-password&lt;br&gt;
admin@os-x-server$ ls -l ~ | grep ntfsdir&lt;br&gt;
drwxr-xr-x    1 admin  staff  16384 Dec 31  1969 ntfsdir&lt;br&gt;
admin@os-x-server$ ls -l ~/ntfsdir&lt;br&gt;
drwxr-xr-x   1 admin  staff    16384 Feb 23 05:27 dir1&lt;br&gt;
drwxr-xr-x   1 admin  staff    16384 Jun  3 09:42 dir2&lt;br&gt;
drwxr-xr-x   1 admin  staff    16384 Apr 15 16:24 dir3&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
So it&apos;s mounting fine and the permissions look okay. In the Workgroup Manager for the OS X Server, ~/ntfsdir is set as a share point, owner is given read and write access, and AFP is enabled for that share. But when I try to mount the AFP share on my local machine, I get the following error:&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
user@os-x-client$ sudo mount_afp afp://admin:password@os-x-server/ntfsdir ~/afpdir&lt;br&gt;
Password: os-x-client-password&lt;br&gt;
mount_afp: the mount flags are 0000 the altflags are 0020&lt;br&gt;
mount_afp: AFPMountURL returned error -5019, errno is 2&lt;br&gt;
user@os-x-client$&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
Google says that error -5019 means bad share name. And indeed, when I use Connect to Server... from the the Finder on the client machine, the share ntfsdir doesn&apos;t show up, even though it&apos;s enabled in the Workgroup Manager, AFP access is on, and owner has full read/write permissions to the share (both in AFP share config and in the server&apos;s filesystem itself).&lt;br&gt;
&lt;br&gt;
Even weirder, the I can&apos;t even mount the share over AFP from within the server itself! I get the following error:&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
admin@os-x-server$ sudo mount_afp afp://admin:password@localhost/ntfsdir ~/testdir&lt;br&gt;
Password: os-x-server-password&lt;br&gt;
mount_afp: the mount flags are 0000 the altflags are 0020&lt;br&gt;
mount_afp: AFPMountURL returned error -5019, errno is 32&lt;br&gt;
admin@os-x-server$&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
So for some reason this share is not being advertised properly. I&apos;ve tried making other test AFP shares, and they work fine... it must have something to do that I&apos;m trying to share a directory that is itself a mount point for a mounted NTFS share.&lt;br&gt;
&lt;br&gt;
I don&apos;t see why the AFP service even knows that ~admin/ntfsdir (on the server) is an NTFS mounted share... seems like it should just be another directory in the filesystem, from its perspective. Unless it&apos;s a permissions thing that I&apos;m missing, although, like I said, the permissions for ~admin/ntfsdir look good; I can browse the mounted NTFS volume on the server through the command line, etc.&lt;br&gt;
&lt;br&gt;
Any clever suggestions for me?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.94155</guid>
		<pubDate>Sun, 15 Jun 2008 17:01:14 -0800</pubDate>
		<dc:creator>DLWM</dc:creator>
		
			<category>osx</category>
		
			<category>ntfs</category>
		
			<category>afp</category>
		
			<category>sharing</category>
		
			<category>sharepoint</category>
		
			<category>windows</category>
		
			<category>fileserver</category>
		
	</item> <item>
		<title>By: disclaimer</title>
		<link>http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP#1376479</link>	
		<description>A shot in the dark: Is the share a subfolder of another share, or on the root of the drive? I have seen issues where Windows shares that are a subfolder of another share fail.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.94155-1376479</guid>
		<pubDate>Sun, 15 Jun 2008 17:27:56 -0800</pubDate>
		<dc:creator>disclaimer</dc:creator>
	</item><item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP#1376629</link>	
		<description>I&apos;m have my doubts AFP is not going to let you re-share a network volume -- you&apos;re looking at a potential security nightmare if anyone can re-offer network filesystems mounted as a given user.  I don&apos;t have the AFP spec in front of me, but certainly if I were writing it I&apos;d forbid pass-through sharing.&lt;br&gt;
&lt;br&gt;
It&apos;s likely you&apos;re running into two issues:  AFP won&apos;t share out a network filesystem, and the GUI doesn&apos;t know that.&lt;br&gt;
&lt;br&gt;
By the way, you&apos;ve got some terminology incorrect.  You don&apos;t have an &quot;NTFS volume mounted.&quot;  You have an &quot;SMB network volume mounted.&quot;  Saying &quot;NTFS volume&quot; implies you&apos;re actually talking to the filesystem on disk (such as over USB to an external spindle) and not a network filesystem.  It&apos;s a pedantic difference, but you&apos;re going to run into trouble finding help for doing things when you describe them incorrectly.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.94155-1376629</guid>
		<pubDate>Sun, 15 Jun 2008 20:36:13 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item><item>
		<title>By: philomathoholic</title>
		<link>http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP#1376697</link>	
		<description>&lt;small&gt;&lt;i&gt;&lt;code&gt;admin@os-x-server$ ls -l ~ | grep ntfsdir&lt;br&gt;
drwxr-xr-x    1 admin  staff  16384 Dec 31  1969 ntfsdir&lt;/code&gt;&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Not relevant to your question, but try &amp;nbsp;&quot;&lt;code&gt;ls -ld ntfsdir&lt;/code&gt;&quot;, instead of your pipeline. The &quot;-d&quot; tells ls to look at the directory itself and not its contents.&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.94155-1376697</guid>
		<pubDate>Sun, 15 Jun 2008 21:50:43 -0800</pubDate>
		<dc:creator>philomathoholic</dc:creator>
	</item><item>
		<title>By: DLWM</title>
		<link>http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP#1376880</link>	
		<description>&lt;a href=&quot;http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP#1376629&quot;&gt;majick&lt;/a&gt;: Thanks for the correction. If you can&apos;t be pedantic in computers and math, where can you? ;) By calling it a &quot;mounted NTFS volume,&quot; I wanted to stress that the filesystem in use on the Windows server was NTFS -- just in case that was causing a permissions issue in conjunction with the Mac boxes.&lt;br&gt;
&lt;br&gt;
However, some research on &lt;a href=&quot;http://discussions.apple.com/thread.jspa?messageID=23109772310977&quot;&gt;Apple discussions&lt;/a&gt; reveals that, as you imply, all that matters (from the perspective of the OS X Server) is that&apos;s it&apos;s a SMB share. The &quot;underlying&quot; filesystem is irrelevant:&lt;br&gt;
&lt;br&gt;
&lt;blockquote&gt;&lt;br&gt;
First off, re-sharing a volume that uses the smb filesystem is not possible due to the way permissions are calculated for that volume. Regardless of the local filesystem of the volume that houses the share point on your Linux server (ext3 or whatever), that share point&apos;s filesystem as it appears to all clients, including your Mac OS X Server computer when it connects as a client, is the smb filesystem. Since that&apos;s a network filesystem already, some types of information cannot be &quot;appended&quot; to it. AFP and SMB/CIFS filesystems, when mounted via Go/Connect to Server (or mount_smbfs) will use a set of masked POSIX permissions. (This means that, if you&apos;re logged into the server as a local admin - locadmin, for example - and you mount the SMB share point as Sally, then locadmin is the owner of the mount point and its enclosed files. The currently-authenticated user is granted the permissions assigned to the user account used to connect. Hence, permissions masking. This happens in every instance when mounting a volume via SMB/CIFS. It happens when connecting to an AFP share point except when the client is bound to a shared directory system, where the user name authenticated at the login window matches the account used to connect to the share point.)&lt;br&gt;
&lt;/blockquote&gt;&lt;br&gt;
&lt;br&gt;
So there you have it. &lt;strong&gt;Not possible to re-share mounted SMB volumes because of the way authentication works.&lt;/strong&gt; An interesting side-note, from the same guy who explained the SMB stuff above:&lt;br&gt;
&lt;br&gt;
&lt;blockquote&gt;&lt;br&gt;
One of the reasons that you can reshare an NFS volume is that you can tell the other server - your Linux box - to map the connection coming from your Mac OS X Server box to a user with read &amp;amp; write permissions to the NFS export (share point), usually the owner. In this way, any commands sent by Mac OS X are issued as the owner of the NFS export, according to the Linux system&apos;s point of view. The main difference here is that, since the mapping is defined on the Linux box&apos;s system, Mac OS X does not employ its own permissions masking.&lt;br&gt;
&lt;/blockquote&gt;&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://ask.metafilter.com/94155/How-can-I-share-a-mounted-NTFS-volume-over-AFP#1376697&quot;&gt;philomathoholic&lt;/a&gt;: Thanks for the tip! Didn&apos;t know about that.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.94155-1376880</guid>
		<pubDate>Mon, 16 Jun 2008 06:13:05 -0800</pubDate>
		<dc:creator>DLWM</dc:creator>
	</item>
	</channel>
</rss>
