PDA

View Full Version : Admin authorization and SMJobBless




lokoArt
Jan 18, 2012, 03:15 AM
Hi guys!
Please help me)
My program needs in admin privilege.
I downloaded this sample http://developer.apple.com/library/mac/#samplecode/SMJobBless/Listings/ReadMe_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...



gnasher729
Jan 18, 2012, 06:46 AM
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.

r0k
Jan 18, 2012, 08:01 AM
Hi guys!
Please help me)
My program needs in admin privilege.
I downloaded this sample http://developer.apple.com/library/mac/#samplecode/SMJobBless/Listings/ReadMe_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.

lokoArt
Jan 18, 2012, 11:07 PM
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.