Manipulating Sharing Services
Manipulating Sharing Services
- Subject: Manipulating Sharing Services
- From: Jim Brown <email@hidden>
- Date: Mon, 10 Mar 2008 21:10:21 -0700
Hi All,
We are developing an app that does a security review of a Mac looking
for obvious vulnerabilities and settings that don't meet our published
Best Practices. One of the steps is to get the current state of each
of the 'services' listed in the sharing preferences (AFP, SMB, printer
sharing, etc...). Additionally we want to give the user an
opportunity, within our app, to changes any that don't comply with
BPs. In Leopard the services don't seem to be quite so 'transparent'.
In Tiger one can determine if AFP is running with 'ps -axc | grep
AppleFileServer' and AFP can be turned off by simply running a shell
command (sudo killall AppleFileServer). This doesn't really work in
Leopard for either determining if AFP is running (AppleFileServer
doesn't seem to be listed in 'ps -axc' even if its running) or turning
it off.
My question is; first, is there a reference document that lists which
plists are associated with which each service? and second, is
CFPreferences the best method for manipulating sharing prefs?
Thanks
Jim Brown
_______________________________________________
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