PDA

View Full Version : Enable Leopard File sharing with code and cli


mruepp
03-20-2008, 01:42 PM
Hi, i am stuck in searching for a API method/cli-method, which enables me to control:
1. File sharing (equivalent to System Preferences/Sharing/File Sharing)
2. SMB Sharing (equivalent to Sys-Prfs/Sharing/File Sharing/Options)
3. AFP Sharing (ditto)

I am not able to control this from shell/cli as well. The only thing which is pretty clear is to switch Apple Filesharing on and off: sudo /sbin/service com.apple.AppleFilesharing stop/start.

But i did not found any method to control the SMB enable/disable and AFP enable/disable wheter from shell nor from code.

Thanks very much for help,

Cheers Mike