sudo firmwarepasswd -setpasswd
sudo firmwarepasswd -check
sudo firmwarepasswd -verify
sudo firmwarepasswd -delete
- reboot in recovery mode
- open terminal
- disable system integrity protection
csrutil disable
reboot
- open terminal
- remount the boot volume with write permissions
sudo mount -uw /
- reboot in recovery mode
- open terminal
- enable system integrity protection
csrutil enable
reboot