• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Enable Personal File Sharing programatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enable Personal File Sharing programatically?


  • Subject: Re: Enable Personal File Sharing programatically?
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 16 May 2006 15:38:19 -0700

On 5/16/06, Andrei Tchijov <email@hidden> wrote:
When your user enables/disables Windows Sharing, the only things
which get changed are launchd's *.plist files responsible for SMB
sharing

        /System/Library/LaunchDaemons/nmbd.plist and
        /System/Library/LaunchDaemons/smbd.plist

When Windows sharing is disabled, both these files have 'Disabled =
true'.  You should be able to enable/disable Windows sharing by
"unloading" these 2 things with launchctl, changing these 2 files and
then loading them back (with launchctl).  You do need root privileges
to do it.

Those files are owned and only writable by root:wheel (you will need admin authorization).

[0:518] > ll /System/Library/LaunchDaemons/nmbd.plist
/System/Library/LaunchDaemons/smbd.plist
-rw-r--r--   1 root  wheel  675B Nov  4  2005
/System/Library/LaunchDaemons/nmbd.plist
-rw-r--r--   1 root  wheel  778B Nov  4  2005
/System/Library/LaunchDaemons/smbd.plist

Also I believe he is asking about personal file sharing (AFP) not
windows file sharing.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Enable Personal File Sharing programatically?
      • From: Andrei Tchijov <email@hidden>
References: 
 >Enable Personal File Sharing programatically? (From: Joshua Scott Emmons <email@hidden>)
 >Re: Enable Personal File Sharing programatically? (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: BigNerdRanch Cocoa Bootcamp
  • Next by Date: initialize an NSArray with a list of objects
  • Previous by thread: Re: Enable Personal File Sharing programatically?
  • Next by thread: Re: Enable Personal File Sharing programatically?
  • Index(es):
    • Date
    • Thread