Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Control FileSharing from the command line Network
As it turns out, Apple File Sharing is configurable, via NetInfo. Despite the dearth of documentation, you can even share folders other than ~/Public. Alas, doing the NetInfo / System Preferences dance is a hassle. So I scripted it.

Now you can control your file sharing with a single command from the comfort of your shell of choice.

[Editor's note: You can also control shares with the shareware program SharePoints, which has been discussed here before. But it's nice to have a command-line option available as well, so thanks to 'logan' for putting this together.]
    •    
  • Currently 2.00 / 5
  You rated: 3 / 5 (3 votes cast)
 
[7,427 views]  

Control FileSharing from the command line | 4 comments | Create New Account
Click here to return to the 'Control FileSharing from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
hey!
Authored by: logan on May 14, '02 01:48:29AM

No need for quotes, that's my real name.



[ Reply to This | # ]
URL is down
Authored by: Chaostastic on Mar 15, '03 08:48:02PM

Anyone know where this script can be found now? Please post the
URL.



[ Reply to This | # ]
Great util, minor bug
Authored by: zadig on May 15, '02 08:42:55AM
Very cool stuff. Now I can unshare everything, then ssh in to my Mac and share things as needed. One minor bug: you can add a share whose name contains a space, as in:
share add "My Fun Vacation Pics" /Users/zadig/pics
This works fine, but then the "list" command chokes on the space. As bugs go, it's pretty trivial, but something to keep in mind. So Logan (if that's your real name...), thanks for writing a very useful tool that is actually easier to use than the NetInfo GUI.

[ Reply to This | # ]
thanks!
Authored by: logan on May 19, '02 10:37:20PM

Thanks for the bug report. It's fixed in the version (1.1) now online.

Please let me know if you run into any other problems with it.



[ Reply to This | # ]