"firmwarepasswd": MacOS Firmware Password Management: CHECK and DELETE Macbook Pro Firmware Password from the command line.

发布时间 2023-12-10 23:46:00作者: abaelhe

Abaels-MacBook-Pro:~ abaelhe$ su
Password:

bash-3.2# firmwarepasswd -check
Password Enabled: Yes

bash-3.2# firmwarepasswd -delete
Delete Firmware Password
Enter password:
Password removed
NOTE: Must restart before changes will take effect


Usage: firmwarepasswd [OPTION]

     ?                               Show usage
     -h                              Show usage
     -setpasswd                      Set a firmware password. You will be promted for passwords as needed.
                                         NOTE: if this is the first password set, and no mode is
                                               in place, the mode will automatically be set to "command"
     -setmode [mode] [-allow-oroms]  Set mode to:
                                         "command" - password required to change boot disk
                                         "full" - password required on all startups
                                         -allow-oroms permits option roms execution
                                         NOTE: cannot set a mode without having set a password
     -mode                           Print out the current mode setting
     -check                          Print out whether there is / isn't a firmware password is set
     -delete                         Delete current firmware password and mode setting
     -verify                         Verify current firmware password
     -unlockseed                     Generate a firmware password recovery key
                                         NOTE: Machine must be stable for this command to generate
                                               a valid seed.  No pending changes that need a restart.
                                         NOTE: Seed is only valid until the next time a firmware password
                                               command occurs.
     -disable-reset-capability       Disable firmware password reset using unlockseed
     -enable-reset-capability        Enable firmware password reset using unlockseed
                                         NOTE: cannot enable or disable firmware password reset
                                               without having set a password