Skip to main content
Solved

Need to remove Firmware Password

  • September 27, 2012
  • 28 replies
  • 457 views

Show first post

28 replies

Forum|alt.badge.img
  • New Contributor
  • November 12, 2020

@rmorse can you give me a layman's rundown on how to execute this script please.

I was able to create a script that removes the current firmware password. I modified some scripts that I found in the thread that @Chris posted. Hopefully this helps people!

!/bin/bash

/usr/bin/expect<<EOF

spawn firmwarepasswd -delete
expect {

"Enter password:" { send "YOUR_CURRENT_PASSWORD " exp_continue }

}
EOF
echo "Firmware Password Has Been Removed"
echo "Now sleep"
sleep 5
echo "Initiating Reboot. . ."
reboot


iamsumanaddya
Forum|alt.badge.img+1
  • New Contributor
  • December 23, 2022

I was able to create a script that removes the current firmware password. I modified some scripts that I found in the thread that @Chris posted. Hopefully this helps people!

#!/bin/bash
#
/usr/bin/expect<<EOF

spawn firmwarepasswd -delete
expect {

"Enter password:" {
        send "YOUR_CURRENT_PASSWORD
"
        exp_continue
    }

}
EOF
echo "Firmware Password Has Been Removed"
echo "Now sleep"
sleep 5
echo "Initiating Reboot. . ."
reboot

for that works, I have to my current password I think, right? What if I have an Firmware password set in my mac but via Extension Attribute from this location i.e /private/var/.fp , we are unable to capture the passwords in JAMF. Can you have a solution for this?


Forum|alt.badge.img
  • New Contributor
  • February 18, 2025

I was able to create a script that removes the current firmware password. I modified some scripts that I found in the thread that @Chris posted. Hopefully this helps people!

#!/bin/bash
#
/usr/bin/expect<<EOF

spawn firmwarepasswd -delete
expect {

"Enter password:" {
        send "YOUR_CURRENT_PASSWORD
"
        exp_continue
    }

}
EOF
echo "Firmware Password Has Been Removed"
echo "Now sleep"
sleep 5
echo "Initiating Reboot. . ."
reboot

RMorse:

 

I am too green at this but want to use my macbook Airbook. I set a firmware pw and promptly forgot it. So, if this script you ventured as a fix works, where/how do i enter it? as of now the airbook boots to the Lock Icon and that's all I got. If there's a way to boot straight to script or terminal I'm sorry I don't know how to pull those up with the firmware pw locking the machine.

Any help would be greatly appreciated. Reply here or rosshvac8@gmail and thanks so much! 

 

Regards˜

Austen