PDA

View Full Version : sharepoint folders in OS X


Hooman
04-09-2005, 07:15 PM
Hi,

could anyone tell me how to create a sharepoint folder using the terminal rather than Server Admin?
Thanks

ps. After upgrading to 10.3 I cannot make any changes using server admin..apparently many people have the same problem..

biovizier
04-11-2005, 04:31 PM
I don't know about OS X Server, but based on this hint and comments which refer to the afp server on OS X client:
http://www.macosxhints.com/article.php?story=20011108161839416
A sharepoint can be added by creating a new directory under '/config/SharePoints/' in "NetInfo", then setting values for the following properties: "afp_name", "directory_path", "afp_use_parent_owner", "afp_use_parent_privs" and "afp_shared". So this works in 10.3 client (not sure how much of it applies to OS X Server):

sudo nicl . -create /config/SharePoints/NIname
sudo nicl . -create /config/SharePoints/NIname afp_name "NameVisibleOverNetwork"
sudo nicl . -create /config/SharePoints/NIname directory_path "/Absolute/path/to/shared/folder/"
sudo nicl . -create /config/SharePoints/NIname afp_use_parent_owner "1" (or "0")
sudo nicl . -create /config/SharePoints/NIname afp_use_parent_privs "1" (or "0")
sudo nicl . -create /config/SharePoints/NIname afp_shared "1"

In the above example, NIname is just an arbitrary name (that only appears in NetInfo) for this share - see the original hint. Then restart "AppleFileServer" to make the share available:

sudo killall AppleFileServer
sudo /usr/sbin/AppleFileServer

Be careful using 'sudo' and 'nicl . -create' since it will overwrite existing values…