maio 06, 2003
share any folder via afp

We've had the ability to create share points when using personal file sharing for quite some time. Simply click a folder and select File -> Sharing, set your options, and go. With OS X, that functionality seems to have disappeared. According to Apple, we need OS X Server for this, but that is not so. Here's how you can create your very own share points in Mac OS X. Make sure you read all the coments... as the original story isn't complete.

Open NetInfo Manager and authenticate.
Create a new subdirectory in /config called SharePoints (unless it already exists)
Create a new subdirectory in /config/SharePoints/ with the name value as what you'd like the share to be called

SharePoint: add these properties
name -NetInfo name
directory_path -Path to directory
afp_use_parent_owner -Boolean: Use owner of parent?
afp_use_parent_privs -Boolean: Use privileges of parent?
afp_shared -Boolean: Share this item?
afp_name -Name visble to clients

name is only used in NetInfo, while afp_name will be used to identify the directory to the client. directory_path should start with a slash (/) so that it is not a relative path. Both afp_use_parent_owner and afp_use_parent_privs should be set to 0 (zero). Finally, make sure that afp_shared is set to 1 (one) so that it will share the directory.

-- skip -- here's my nidump infos
{
"name" = ( "SharePoints" );
CHILDREN = (
{
"afp_use_parent_owner" = ( "0" );
"afp_use_parent_privs" = ( "0" );
"directory_path" = ( "/Users/Shared" );
"name" = ( "mp3" );
"afp_name" = ( "mp3" );
"afp_shared" = ( "1" );
}
)
}


Posted by skp at maio 06, 2003 11:55 AM | TrackBack
Comments

Does anyone know if AFP can follow symbolic links? I have searching the docs and cannot find confirmation. It doesn't work by default. But that may be an option to prevent problems. Is this a feature that i can switch on? Or is it not possible?

Thanks in advance.

Dan

Posted by: Dan on fevereiro 20, 2004 03:49 PM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?