Reset the master password through applescript

I understand that the correct procedure to reset the master password is to delete these two files from the computer:
/Library/Keychains/FileVaultMaster.cer
/Library/Keychains/FileVaultMaster.keychain
The next step is to go into system preferences and click users and groups. The lock has to be unlocked and then the settings button has to be clicked. The text will now say set master password. I can now enter in information in the new popup screen.
I would like to automate this process through applescript. I need some help on navigation of the system preferences. I have looked at turn Airport on and off code through applescript and don't quite understand how to click the settings and unlock buttons.
Here is that code:
tell application "System Preferences"
  activate
end tell
tell application "System Events"
  tell process "System Preferences"
    click menu item "Sharing" of menu "View" of menu bar 1
    delay 2
    tell window "Sharing"
      click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
      delay 1
      if (exists sheet 1) then
        if (exists button "Turn AirPort On" of sheet 1) then
          click button "Turn AirPort On" of sheet 1
          delay 1
        end if
        click button "Start" of sheet 1
      end if
    end tell
  end tell
end tell

Resetting or changing a password:
For Snow Leopard or earlier:  http://support.apple.com/kb/HT1274
For Lion or later:  http://support.apple.com/kb/HT6022
This is also useful:
http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email
If it's running Mac OS X 10.6.8 or earlier, insert a Mac OS X install DVD, restart with the Option key held down, click on it, and use the Reset Password utility.
If it's running Mac OS X 10.7 or newer, restart with the Command and R keys held down, open the Terminal, and use the resetpassword command:
https://discussions.apple.com/docs/DOC-4101
If it the Keychain password that needs resetting:
http://support.apple.com/kb/ts1544

Similar Messages

  • Why can't I reset the master password with the option of removing all username:passwords by unchecking "Use Master Password"?

    Why can't I reset the master password with the option of removing all username:passwords by unchecking "Use Master Password"? Currently, there seems to only be the option to issue a "chrome:" command in URL which DOES reset the master password. However, it was something that I had to google. The intuitive option would be to uncheck the "Use Master Password" checkbox, receive a verification dialogue, and blammo, password reset. Please make this a feature, thank you.

    ''cor-el [[#answer-702776|said]]''
    <blockquote>
    You can remove all password in the Show Passwords dialog.
    That is where you manage the passwords.
    The master password is only for protecting the passwords with an extra level of encryption and has nothing to do with erasing passwords apart from resetting the MP in case you have forgotten the MP and can't open "Show passwords".
    </blockquote>
    Sorry, for being unclear. Essentially this is a feature request for an option under Firefox options (why not?) to reset my Master Password not knowing the Master Password. For Security reasons I understand why all the saved passwords have to be wiped, but wiping the Master Password (having forgotten it) should be an option without having to issue an arcane command that one has to google to figure out.

  • Firefox crashes when I try to reset the master password using chrome://pippki/content/resetpassword.xul

    # Question
    Firefox 3.6.10 on Windows 7 crashes when I try to reset the master password using chrome://pippki/content/resetpassword.xul. Is there an alternate way of resetting the master password?

    You can delete the 2 files that contain password details, they will be re-created automatically. First open the profile folder, for details of how to find it see the [[profiles]] article. Now close Firefox and delete key3.db and signons.sqlite. If there are files called signons.txt, signons2.txt and signons3.txt you can delete those as well, they are from earlier versions of Firefox.

  • I have an older iMac (OS X 10.4.11), and I forgot my master password.  Is there anything I can do to reset the master password?

    I have an older iMac (OS X 10.4.11), and I forgot my master password.  Is there anything I can do to reset the master password?

    Here's the instructions if you have the discs.
    Mac OS X: Changing or resetting an account password
    http://support.apple.com/kb/HT1274?viewlocale=en_US
    Changing your administrator password
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh655.html
    Here's one method to reset the password without the install disc:
    1. boot computer and hold the "apple" key and the "s" key.
    2. wait for terminal show
    3. release keys
    4. type without the quotes: "/sbin/mount -uaw"
    5. press enter
    6. type without the quotes: "rm /var/db/.applesetupdone
    7. press enter
    8. type without the quotes: "reboot"
    9. press enter
    This will let you create a new admin account when you reboot your computer.
    Also, without the discs, look at Mac OS X Tip - No Password, No Root, No CD? No Problem.
    http://www.macobserver.com/tip/2003/06/16.1.shtml
    Here is a way to get around not knowing the admin password on Macs.
    To reset your OS X password without an OS X CD you need to enter terminal and create a new admin account:
       1. Reboot
       2. Hold apple + s down after you hear the chime.
       3. When you get text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):
              * mount -uw /
              * rm /var/db/.AppleSetupDone
              * shutdown -h now
       4. After rebooting you should have a brand new admin account. When you login as the new admin you can simply delete the old one and you’re good to go again!
     Cheers, Tom

  • How do i change the master password without knowing the previous password

    I need to reset the master password on my macbook, but I don't know the previous password.

    There is no 'default'
    The admin password is set individually for each account. If you are logged into your account and your account is an administrator account then you have set the admin password, if you did not set it for yourself who did? is there an IT dept in this company?
    If you are still signed into someone else account and Find My Mac is active you will need them to sign the Mac out of their account so that you can sign into yours.
    For a company issued machine this is a very poor handover.
    Good luck.

  • I tried resetting my Master Password using "chrome://pippki/content/resetpassword.xul", but when I click on "Change Master Password" it asks for my CURRENT password. I don't have a current password, because I don't remember it and am trying to reset it!

    Using FF 4.01 for laptops & desktops, Windows XP 2002 SP3. I used "chrome://pippki/content/resetpassword.xul" to reset the Master Password. Then went to Tools/Options/Security, clicked on "Change Master Password". BUT it asks for my CURRENT password and new password. I don't know my current password. Is there a default Master Password that I need to input as the Current password?

    If you still have a Master Password set then it looks that resetting the MP hasn't worked.
    If using the chrome url (chrome://pippki/content/resetpassword.xul) doesn't work then delete the files [http://kb.mozillazine.org/key3.db key3.db] and signons.sqlite in the Firefox profile folder.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox.
    You need to set a new Master Password after renaming or deleting key3.db and all currently saved passwords are lost.

  • I tried to sign up for your password saving system the other day. In doing so I had to create a master password. I now have lost the master password--it wouldn't accept most of my choices--and now I'm locked out of many of my websites.

    keep on getting the message Password Required--please enter master password for security software security device.
    I have a MacBook pro 10.6.8

    See:
    * https://support.mozilla.com/kb/Forgot+my+master+password
    If you reset the master password then you lose all stored passwords.
    You can try to use the Time Machine to restore both key3.db and signons.sqlite to versions when you didn't had the master password.
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    See also:
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Can not understand how to reset lost master password key

    I have read how to change it but can not figure to do it

    Did you try to use the chrome URL in the location bar?
    chrome://pippki/content/resetpassword.xul
    If using the chrome url doesn't work then delete the key3.db and signons.sqlite files in the Firefox profile folder.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    * "Resetting the master password": http://kb.mozillazine.org/Master_password
    * https://support.mozilla.org/kb/Forgot+my+master+password

  • How can I locate the file /Library/Keychains/FileVaultMaster.cer to reset my master password? Thanks!

    How can I locate the file /Library/Keychains/FileVaultMaster.cer to reset my master password? Thanks!

    The files that weren't inside the media folder on the original machine need to be copied over to exactly the same paths as they had on the source machine. See this thread for an ongoing discussion of a similar problem. See also this post on migrating the iTunes library.
    tt2

  • What do you do if you've forgotten the master password for reset and you've thrown out the gift reciept? HELP??????????

    How do you reset the iPad if you've forgotten the master password and threw out the gift reciept?

    Contact the person that gave it to you.  See if they have a receipt.
    Apple doesn't use the term master password.
    There are two different locking mechanisms:  passcode, prevents access to your data,  and activation lock, prevents use of device if stolen.  You do not want the students setting the activation lock.
    If the passcode is set & forgotten , you can reload from backup or wipe ( first typed whip ) the device.
    iPhone or iPad locked from incorrect passcode.
    If you enter the wrong passcode six or more times, you'll see a message that says Ipad is disabled.
    See how to restore from backup.  No back up on your computer, click on the triangle before "If you have never synced your device with iTunes, or you do not have access to a computer"
    http://support.apple.com/kb/ht1212
    http://support.apple.com/en-us/HT1212
    The problem arises when someone sets the activation lock which is set by logging onto your apple id then setting the appropriate option.   DEP is the preferred preventative.  It established your organization as the owner.  The student cannot set an activation log.
    Undoing the Activation lock
    iCloud: Activation Lock
    Describes what the activation lock does:
    http://support.apple.com/kb/PH13695?viewlocale=en_US
    For how to remove, see Texas Mac Man post in
    https://discussions.apple.com/thread/6528124
    Robert

  • Thw www Address that Support told me to put in the Nav bar (chrome://pippki/content/resetpassword.xul) takes me somewhere that doesnt have any of the options Support says it does. I need to reset my master password as I have forgotten it, HELP

    The www Address that Support told me to put in the Nav. bar (chrome://pippki/content/resetpassword.xul) takes me somewhere that doesn't have any of the options Support says it does. I need to reset my master password as I have forgotten it, HELP

    If the usual method does not work, you can also do this manually.
    # Open your profile folder, for details of how to find it see https://support.mozilla.com/kb/Profiles
    # Close Firefox
    # In the profile folder delete key3.db, signons.sqlite, and if they exist signons.txt, signons2.txt and signons3.txt
    That will delete all passwords and remove the master password.

  • I reset my master password, and I wrote it down so I know I have the right one, and now FF will now accept it.

    I changed the master password twice, the first time was to complicated to remember so I changed it again and wrote it down. I know it accepted the change both times. But now it will not accept the any master password. And won't let me change it without entering what it thinks it the current one. And all this happened right after I loaded FF 4.0
    Any ideas on a way around this?

    See:
    * [[Forgot my master password]]

  • Please help me get my laptop back someone has cracked the master password and is running multiple operating systems which I have no access to

    Okay so I am not a computer expert by any means and have no clue how to fix my system. My father worked for intel for over 20 years as an engineer I asked him to restore my laptop to its original factory state and instead he cracked the master password
    installed multiple operating systems and made himself the administrator or domain controller. Many features and options I do not have access to so reading the trouble shooting and going through the steps always leads me to a dead end. The laptop is TOSHIBA
    SATELLITE L875D-S7332 a6 VISION AMD WINDOWS 8. As far as I can see my profile is actual running a version of windows 7. I do see reference to a windows 8RT windows 2003 windows vista wow64 and 32 I don't know what all that means I would just like to know how
    wipe everything and get back to the factory condition I bought it in. If anyone can help it would be much appreciated

    Do you have Win 7 installation disk? If yes, then go ahead and format the laptop if you don't need any data. If you need the data it it, then copy the same to USB disk and format it. Removing OS and deleting these things will anyhow keep some remains on
    HDD. TO get the speed and performance back, you might need a fresh installation. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • How do you re-set the master password without knowing what it is?

    I set up a master password, and can't remember it.  I haven't activated the filevault, so from what I read, that is good.  But I still don't know how to re-set the master password if I don't have the old one to change it.  Please help.  I have too many albums in iTunes, documents, and calander events that have not been backed up, so I don't want to reinstall the software, if that is an option.  At least not until I can pick up an external backup.

    I forget where I read this, but to eliminate an existing filevault "master password", delete the files 'FileVaultMaster.cer' and 'FileVaultMaster.keychain' in your computer's main '/Library/Keychains/' folder (not through "Keychain Access.app"). You should then be able to set a new "master password" in the "Security" preference pane if you ever decide to use "filevault" again. Note that if you do this while an account is still encrypted (ie. with filevault enabled), that account will not be accessible with the new "master password". 

  • How2 REMOVE the Master Password ?

    Master password looks good but how to disable / remove it ?

    What do you mean?
    The Master Password is the backup password for FileVault. Why would you want to remove it? You don't necessarily need to set one, but if you activate FileVault and forget your login password, the MasterPassword is the only way to access the data encrypted by FileVault.
    Figure it makes more sense in a network environment where a user (employee) forgets his/her password and needs the admin (IT guy) to reset it.

Maybe you are looking for

  • Collective release of service entry sheet

    Hi, i kindly request you all for expert opinion on this. i have one service PO with two line tems. at the time of service entry sheet, this will create two documents for each line item. so here authorized person has to approve both the documents sepe

  • DECRYPTION_ERROR when receiving an AS2 message

    Dear all, I would like to receive an AS2 message via the Seburger Connector from a trading partner. We asked our partner to encrypt and to sign the message. He received our AS2 certificate and we send him our AS2 certificate. Today our partner sent a

  • Best security features for iPad mini at high risk for theft?

    I'm giving my disabled sister (mental disability) a new iPad mini for Christmas.  I bought her the $300 WiFi-only model.  She lives in a group home 800 miles away.  She doesn't own a computer or have easy access to a computer (she uses the computer a

  • Connect by prior statement....

    Hi, please help me in the following query. select a.part,a.assy from assy_info a connect by prior part = assy start with assy in ('A'); part assy B A C B Z C H Z I don't want the above query to extract after part = 'Z'. please help me... regards laxm

  • RCPT: Re: Forte productivity metrics

    Confirmation of reading: your message - Date: 13 Dec 96 9:07 To: [email protected] Subject: Re: Forte productivity metrics Was read at 20:10, 22 Mar 96.