Script to Clear Password on Mac
Apple devices are known for their extensive security and privacy features. Apple does not allow users to remove the login password from their Macs as it could potentially risk any personal or confidential data if the device gets stolen or lost.
However, you will be able to set an empty string as the login password on your Macs using Hexnode’s Custom Script feature. The user will be able to log in to the device by simply clicking the “Enter” key without entering any password.
Clear password on your Mac
#sudo dscl . passwd /Users/user_name “”
The above-mentioned script sets an empty string as the login password for your Macs.