Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 18, 2012, 03:15 AM   #1
lokoArt
macrumors newbie
 
Join Date: Jan 2012
Admin authorization and SMJobBless

Hi guys!
Please help me)
My program needs in admin privilege.
I downloaded this sample http://developer.apple.com/library/m...eadMe_txt.html

It shows how to bless my helper tool.
After run in /Library/launchDaemons exists com.apple.bsd.SMJoblessHelper.plist
and in /Library/privilegedhelpertools/ exist my helper tool.

Please say me. How run my helper tool?
I guess that I have to load and start daemon, but how it can?
I'm disappointed...

Last edited by lokoArt; Jan 18, 2012 at 03:40 AM.
lokoArt is offline   0 Reply With Quote
Old Jan 18, 2012, 06:46 AM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Why do you need administrator privileges? First, it means that your application will never, ever be able to be on the App Store. Second, it means that I would be very, very reluctant to use your software.

And it is _impossible_ to run your helper tool without the user entering their password at some point, if that is what you are trying to achieve.
gnasher729 is offline   0 Reply With Quote
Old Jan 18, 2012, 08:01 AM   #3
r0k
macrumors 68040
 
r0k's Avatar
 
Join Date: Mar 2008
Location: Detroit
Quote:
Originally Posted by lokoArt View Post
Hi guys!
Please help me)
My program needs in admin privilege.
I downloaded this sample http://developer.apple.com/library/m...eadMe_txt.html

It shows how to bless my helper tool.
After run in /Library/launchDaemons exists com.apple.bsd.SMJoblessHelper.plist
and in /Library/privilegedhelpertools/ exist my helper tool.

Please say me. How run my helper tool?
I guess that I have to load and start daemon, but how it can?
I'm disappointed...
I wrote an app that starts and stops a daemon. I have had a handful of complaints from users that don't want to enter an Admin password to do so. I say too bad. If you're app is doing something as admin and you're trying to find a way around entering an admin password, my question is why? Convenience never outweighs security.
__________________
-r0k
Macbook Pro (late 2011) iPad mini iPhone5
Got a scan to ftp scanner? Enable ftpd in Mavericks!
r0k is offline   0 Reply With Quote
Old Jan 18, 2012, 11:07 PM   #4
lokoArt
Thread Starter
macrumors newbie
 
Join Date: Jan 2012
Quote:
Originally Posted by r0k View Post
I wrote an app that starts and stops a daemon. I have had a handful of complaints from users that don't want to enter an Admin password to do so. I say too bad. If you're app is doing something as admin and you're trying to find a way around entering an admin password, my question is why? Convenience never outweighs security.
Thanks... I'm doing it because my pkg installed in Lion with admin privilegies, and owner of my application is root. I have to fix it. And I decided that I'll not use SMJobBless.
lokoArt is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
I bought a used Mac Mini Intel 1.66 and dont no the admin password and have no discs G5Jake Mac mini 66 Dec 28, 2012 01:23 PM
iTunes says I'm not authorized to move an audiobook to iPhone4 grastafaram iPhone Tips, Help and Troubleshooting 2 May 25, 2011 02:06 PM
Macrumors Published Authors and current writing authors... waloshin Community Discussion 2 Sep 12, 2010 03:34 AM
Delete Admin account and make other account Admin. Chrismcfall Mac Basics and Help 3 Oct 26, 2007 05:03 AM
HELP! -Changed Admin User and now my iTunes library and iPhoto poofed! MacPossum Mac Basics and Help 9 Aug 4, 2007 04:18 AM


All times are GMT -5. The time now is 02:51 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC