• 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
Authentication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Authentication


  • Subject: Authentication
  • From: Ben Ku <email@hidden>
  • Date: Fri, 2 Feb 2007 16:01:46 -0500

I'm creating a system preference and I'm trying to run the following script either as root or it could be run using a sudo somehow:
/usr/java/cascade/bin/run.sh


I have tried to do this using an NSTask, but I'm not quite sure how to get it to authenticate properly. I'd like to have the app prompt the user for an administrator username/password and be able to do it that way, but I'm open to other options.

A further caveat is that ideally, I'd like it to not prompt the user every time. The user needs to be able to start/stop this service and also write and read settings from a configuration file in the same directory.

I guess ideally the user would click a lock icon and be able to lock/ unlock the interface. Does anyone know of any good simple examples of this? I've found finding example system preferences very difficult, especially when it comes to authentication.

Sorry this is so off the wall and such. This is the first cocoa project I've ever attempted and I've been struggling through it for the last 3 days.

- Ben

--
Ben Ku
Hannon Hill
email@hidden
p. 678-904-6900
f. 678-904-6901
http://www.hannonhill.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Authentication
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: [MEET] February CocoaHeads Meetings
  • Next by Date: Re: Authentication
  • Previous by thread: [MEET] February CocoaHeads Meetings
  • Next by thread: Re: Authentication
  • Index(es):
    • Date
    • Thread