Re: Read "File Sharing" status
Re: Read "File Sharing" status
- Subject: Re: Read "File Sharing" status
- From: email@hidden
- Date: Mon, 28 Jun 2010 10:41:06 +0530
I want to list the shared local folders only if smb file sharing is enabled. Currently I am scanning the smb port to get this information. Also Ps command works to check if smb server is running. But the problem is that if, "File sharing" is disabled and only "printer sharing" is enabled in system preference then also smb port scan or ps command passes. But in this case local shared folders should not be listed.
--
John
> ----- Original message -----
> From: "Kyle Sluder" <email@hidden>
> To: email@hidden
> Subject: Re: Read "File Sharing" status
> Date: Fri, 25 Jun 2010 10:57:38 -0700
>
>
>On Fri, Jun 25, 2010 at 6:28 AM, <email@hidden> wrote:
> > How to check if "File Sharing" is checked in system preference.
> > When iterated using ps command
> > samba daemon will be running even if only "Printer Sharing" is
> > checked. So I would like to know
> > If there is any cocoa API/ system configuration API (SC framework)
> > that checks if file sharing is checked.
> > mount_smbfs can be used check (for successful mounting), but that
> > requires password for mounting the volume.
>
> Why do you need this information? What are you trying to accomplish?
> The way you've phrased it, I can only imagine you're trying to mount
> an SMB volume shared by the local machine, which seems
> unnecessary—you're already on the local machine, just go through the
> filesystem.
>
> --Kyle Sluder
>
--------------------------------------------------------------
Ovi Mail: Create an account directly from your phone
http://mail.ovi.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden