Ask for Admin Creds. at app startup and not during execution of shell commands

I am developing an in house application in XCode w/ Cocoa-Applescript (ASOC). My application runs a number of commands using do shell script. Some of the commands require admin authentication so when the app is run and the commands executed, the user is prompted to authenticate w/ admin credentials. If there is more than 5 minutes in between commands the user is re-prompted.
My question is - is there a way to ask for admin credentials at application start maybe as part of the on applicationWillFinsihLaunching_(aNotication) function so that a user can run the application and only have to enter admin credentials one time?

Unfortunatly, I won't be able to do that. Defintly something I looked into however. We are reyling on a third party management suite to perform the application installations and AD binding. The app installs and the AD bind don't require Admin authentication because they run as Root through Casper (management suite) and I must wait until Casper has bound the system to the domain in order to create the mobile account. So I can't couple the commands that require Admin authentication together.
I really appreciate your ideas and welcome any other you or any other members might have! This has been very thought provoking.
Your 1st idea is interesting however, I hestiate to store a password.

Similar Messages

  • IMac is asking for admin login password upon startup when it never did before, settings are still on auto login. Why is it doing this out of the blue?

    iMac is asking for admin login password upon startup when it never did before, settings are still on auto login. Why is it doing this out of the blue?

    Is sounds like it might for some reason booting into Safe Mode, which does prompt for a password.
    Try a PRAM reset:
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    If that doesn't help, restart holding down the option key which should take you to the startup manager. Select Macintosh HD (you may need to use the arrows on the keyboard if the kb is Bluetooth), tap 'enter'. Does it boot normally now?

  • RAW 5.02 update installed without asking for admin creds

    I was prompted to install this update while logged in to a non-admin account.  I went ahead, but it never asked me for admin credentials which I thought was odd.  Is this correct behavior? 
    I did check disk permissions and nothing showed up.
    Regards, Patrick

    At least in OS X Mavericks, you are not asked for the user account password when you install OS X updates from Software Update. This does not happen if you download and install the updates from the Apple website.
    If you want to be asked for your user password, send the idea to Apple > http://www.apple.com/feedback

  • HT1918 when i am entering credit card/payment details not getting accepted since it asks for billing address as unites States and not accepting an oman mobile number

    not able to buy product from apple store due to problems in having credit card information entered

    If you are not in the US then you can't use the US store - you need to be in the US with a US billing address to use the US store.
    If you are in Oman as your name implies then you can only use the Omani store - you have your region set to Oman ? And you've tried entering your Omani billing address ?

  • HT201303 when I try to do updates in the app store it keeps asking for my credit card info and telling me that my "security code is invalid".  it obviously isn't.  how can I fix this issue?

    I have 3 Iphone 4's.   One of them updates from the App Store with no issues.  My other two which are under the same AppleID will not let me do updates.  when I try it asks for my Credit card info then after i enter it it says "security code invalid".   Has anyone else had this issue and how have you fixed it?
    thank you 

    Leigh...
    but cannot do this because I cannot access Mac App Store
    If you can't access the App Store from the Apple menu, Dock, or Applications folder installing the Mac OS X 10.6.8 Update Combo will reinstall the App Store for you.
    It's ok to do this even you are already running v10.6.8.
    Plants vs. Zombies, and that is all for additional software on here
    FYI:  Some third party software can cause issues with the App Store >   Mac App Store: Sign in sheet does not appear, or does not accept typed text
    Apple is not responsible for incompatibility isssues with third party software.

  • HT204053 What do I do when the app store asks for a credit Card and I don't have one

    What do I do when the app store asks for a credit card and I don't have one.

    See the following link that discusses doing what you want:
    http://support.apple.com/kb/HT2534?viewlocale=en_US&locale=en_US

  • Installing update-App asks for admin's name-? and password

    Since installing Lion I tried to download an undate iAuthor from the App Store on my MacBook Pro laptop and the system asks:
    it has never asked for the administrator's name before and I don't remember what mine is. At 86 years old I have trouble remembering my own name.
    Can anyone help me???

    Last login: Mon Mar 26 11:06:41 on console
    william-a-minears-macbook-pro:~ williamaminear$ Rod Blagojevich is the former Illinois Governor who tried to sell Obama's seat in Congress.
    > Obama was asked by the press if he had ever met Gov. Rod Blagojevich. He replied: "I only saw Rod Blagojevich one time .... And that was in the stands and from a distance at a Chicago Bears Football Game."
    > Of course, you can believe him - he's our President
    The picture below? That's irrelevant.
    Rod Blagojevich, Barack Obama, and Richard Daley during a rally in Chicago , April 16, 2007. (Photo Reuters) Note: Rhom has replaced Daley as Mayor! And Daley's brother has replaced Rhom as a chief adviser to the president.
    Rhom, the new Mayor of Chicago
    You have to understand "the world according to Chicago "
    Chicago is almost a completely different country when it comes to politics, with a different set of morals and language.
    There are three rules and a Prime Directive.
    RULE #1. No matter what you see, hear, or do -- you don't know anybody & you know nothing!
    RULE #2. If you capture something on tape or camera -- it reveals nothing!
    RULE #3. If you know what everybody knows in Chicago -- you still know nothing.
    The PRIME DIRECTIVE ...No matter what the vote, Democrats win the election.
    Now pay close attention!
    It's very simple. Remember, you know nothing.
    These two? They never met! Obama said they didn't..
    These two? Who are they?-bash: Rod: command not found
    william-a-minears-macbook-pro:~ williamaminear$ The picture below? That's irrelevant.
    >
    >
    > Rod Blagojevich, Barack Obama, and Richard Daley during a rally in Chicago , April 16, 2007. (Photo Reuters) Note: Rhom has replaced Daley as Mayor! And Daley's brother has replaced Rhom as a chief adviser to the president.
    -bash: The: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ Rhom, the new Mayor of Chicago
    -bash: Rhom,: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ You have to understand "the world according to Chicago "
    -bash: You: command not found
    william-a-minears-macbook-pro:~ williamaminear$ Chicago is almost a completely different country when it comes to politics, with a different set of morals and language.
    -bash: Chicago: command not found
    william-a-minears-macbook-pro:~ williamaminear$ There are three rules and a Prime Directive.
    -bash: There: command not found
    william-a-minears-macbook-pro:~ williamaminear$ RULE #1. No matter what you see, hear, or do -- you don't know anybody & you know nothing!
    -bash: RULE: command not found
    william-a-minears-macbook-pro:~ williamaminear$ RULE #2. If you capture something on tape or camera -- it reveals nothing!
    -bash: RULE: command not found
    william-a-minears-macbook-pro:~ williamaminear$ RULE #3. If you know what everybody knows in Chicago -- you still know nothing.
    -bash: RULE: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ The PRIME DIRECTIVE ...No matter what the vote, Democrats win the election.
    -bash: The: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ Now pay close attention!
    -bash: Now: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ It's very simple. Remember, you know nothing.
    >
    > These two? They never met! Obama said they didn't..
    -bash: Its very simple. Remember, you know nothing.
    These two? They never met! Obama said they didnt..: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ These two? Who are they?
    -bash: These: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ The guy on the left? He's Santa Claus. And the guy on the right.... he's the Easter Bunny! That's all you need to know.
    > These two? Don't ask.
    -bash: The: command not found
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$
    william-a-minears-macbook-pro:~ williamaminear$ Remember Jimmy Hoffa? He knew too much. Where is he now? Don't ask.
    william-a-minears-macbook-pro:~ williamaminear$ "When people fear the government - that is tyranny; when governmenwilliam-a-minears-macbook-pro:~ williamaminear$ "When people fear the government - that is tyranny; when government fears the people - that is liberty." Thomas Jefferson
    illiam-a-minears-macbook-pro:~ williamaminear$ "When people fear the government - that is tyranny; when government fears the people - that is liberty." Thomas Jeffersoe

  • I have to update all my application in my App Store however they are asking for the credit card details since this is to update only. Even to download some free games still they are asking my credit card details since it is a free. Please help me..

    I have 11 updates in my App Store but every time I click the update they ask first my apply ID that would be fine but after they will ask my credit card details since this is only to update. Please help me.
    Also, even I would like to download some games it's ok to ask for our Apple ID but in the second time they will ask for the credit card details. Please help me

    My younger brother had the same problem. You have to go into settings, app store, details and then change your credit card details to none. If there is no none option, you will have to use a different apple id.

  • I just bought a new Ipad mini a while ago, a created a new apple ID "***************" , I can't download anything on apps store, it keeps on asking for a credit card but I don't have one. Can I create an account without a credit card?

    I just bought a new Ipad mini a while ago, and created a new apple ID *********** , I can't download anything on apps store, it keeps on asking for a credit card but I don't have one. Can I create an account without a credit card?
    <Edited by Host>

    Read this:
    iTunes Store: Accepted forms of payment
    It is the same for the app store. You are required to have some sort of payment method in the record.
    Barry

  • HT2534 When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • App store keeps asking for my credit card info for free apps!??

    Every time I go to get a free app, I keep getting asked for my credit card info to be updated. If it's free, why is my credit card info needed!?? I don't want to get charged, so I cancel out of the credit card request, it's not worth trying to get unwanted charges taken off. I would write to Apple but for some strange reason they refuse to use email for help. So, guess I will just try here.
    Thanks,
    Jim

    Hello All,
    Even I do faced same issue on my iphone 5 recently, because I had updated my credit card details while purchasing 'whats app'. Later on if I try do down load free apps, it started asking me verify payment info..I got frustrated and tried to remove apple id and create the same id and reset networksettings, but issue not resolved.!!
    Possible scenarios of it occures:
    1. While creating your apple id you might have given credit card info an dlater that got modified/expired
    2. Once you buy anything by using credit card that info will be updated to your apple id, so it asks every time
    Resolution:
    Just remove your credit card details from payment information
    setting > icloud > account > payment information -- remove ur credit card info , done done
    Then try to download free app, it will only asks for apple password, It will not ask for 'payment verification'
    Thank you
    Krish

  • HT5621 I created and apple id but want it to be a free apple id and it is asking for a credit card number. What should I do?

    I am trying to create a free Apple ID for my sister that has a learning disability. I created the account but it is asking for a credit card for which she does not have. What should I do?

    Create a NEW account/ID for her using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • I have $10 in my account but it is asking for my credit card info when I try to buy an app?

    I have $10 in my account but it is asking for my credit card info when I try to buy an app?

    If the cost of the app is close to $10 - there could sales tax or VAT added onto the purchase as well. Here in Pennsylvania the state sales tax is 7% in the county in which I live. The app would have to cost less than $9.35 or I would exceed the $10 balance in the account.
    It may also be a way of simply identifying that you are who you claim to be - a verification process if you will. Apple is currently increasing security measures in the app store and iTunes.

  • Why am I being asked for my credit card details to upgrade a Free app??

    Why am I being asked for my credit card details to upgrade a Free app??

    Howdy GaryFC,
    Thanks for using the Apple Support Communities.
    If you have a payment source associated with your Apple ID, it needs to be a vaild form of payment.  To troubleshoot issues with your payment type being declined, please follow the steps below.
    In most cases, this issue is caused by a formatting error in the billing address that you have provided. You can correct the issue by verifying that the information you have provided is correct, or by changing the format of your address to match the format that your credit card company has on file.
    You can verify and/or modify your billing address by following these instructions:
    Open iTunes.  If you are signed in to iTunes, skip to step 4.
    Note: Verify that you are signed in to the correct iTunes account. If you are unsure which account you're signed into, choose Store > Sign Out and proceed to step 2.
    Choose Store > Sign In.
    Enter your account name and password, then click the Sign In button.
    Choose Store > View My Account.
    Click the Edit Payment Information button.
    In the Payment Method section, choose None.
    Click the Done button at the bottom of the page.
    Click the Edit Payment Information button again.
    Enter your billing address exactly as it appears on your credit card statement.
    Select your credit card type in the Payment Method section.
    Enter your credit card information, your card's security code, and the expiration date.
    Click the Done button at the bottom of the page.
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorizations have the correct information on file.
    iTunes Store: My credit card's security code or zip code does not match my bank's records - Apple Support
    Take care,
    Alex H.

  • Im trying to purchase music and it says i have $21.07 on my itunes account but when i go to purchase music it asks for my credit card details or a gift card no. and wont let me continue til i do so. how do i spend the money i have on there already?

    im trying to purchase music and it says i have $21.07 on my itunes account but when i go to purchase music it asks for my credit card details or a gift card no. and wont let me continue til i do so. how do i spend the money i have on there already?
    i try to download the song and it comes up with put in password. then it takes me to a credit card detail place. i have enough money on my account i shouldn't have to use my credit card. how can i use the money alredy on my account?

    If the amount of the purchase is close to $21.07, then you need to take into account taxes may be added.
    If you go beyond the credit from a gift card the balance will be billed to your credit card account.

Maybe you are looking for