Mac OS X Server: Sharing Files from the Command Line
Mac OS X Server provides the sharing command. Â You can create, delete and augment information for share points using sharing.
To create a share point for AFP you can use the following command:
sharing -a <PATH> -A <NAME>
So let’s say you have a directory at /Shares/Public and you want to create a share point called PUBLIC. Â You can use the following command:
sharing -a /Shares/Public -A PUBLIC
Now, the -a here will create the share for AFP but what if you want to create a share for other protocols?  Well, -F does FTP and -S does SMB.  Once created you can disable the share using the following command:
sharing -r PUBLIC
To then get a listing of shares you can use the following command:
sharing -lÂ
Similar Articles:
- Mac OS X Server: AutoFS
- Mac OS X Server: Spotlight
- Setting up DFS in Windows Server 2008
- Mac OS X Server 10.5: Sharing Files the New Way
- Windows 7 HomeGroup
In: Mac OS X Server · Tagged with: AFP, Command line, FTP, Mac OS X Server, Sharing, SMB


