Macos Sierra Reset Password Terminal

broken image


For extra security, you can add a firmware password to Macs, especially since Find My Mac is essentially useless (unlike for iPads, which have an activation lock preventing thieves from reactivating the iPad after a factory reset) and DEP-to-MDM enrollments for Macs can even be avoided by thieves if they're resourceful enough.

Reset Macos Password

If you have a laptop with a firmware password, you need that password to boot from anything except the startup disk. Combine that with FileVault encryption, and a stolen Mac is pretty much useless. Doesn't mean that you'll necessarily get it back, but the likelihood is higher if the device is useless to thieves.

You can, of course, enable the firmware password via Recovery Mode, but it's easier to do it from the command line:

Use the Command Line — In early versions of Mac OS X, the command line was the best way to. VGA is not supported by macOS Sierra. VGA – Video Graphics Array is an analog graphics interface that uses a 15-pin D-sub connector. Support for VGA was dropped by Apple more than 9 years ago. Use a digital connection for the best results. Older 4:3 CRT monitors will not work with macOS Sierra or High Sierra. The above method to reset login password running macOS Sierra is quite easy. Hope this information helps you reset Macbook Air/Pro password in macOS Sierra. If you have any suggestion or feedback, share with us on Facebook, Twitter and Google Plus. Newsletter sign up. Take A Sneak Peak At The Movies Coming Out This Week (8/12) #BanPaparazzi – Hollywood.com will not post paparazzi photos.

You'll be prompted for the new firmware password. Afterwards, you'll need to reboot the machine for the change to take effect. (Be sure to make sure you have an actual startup disk selected in System Preferences!)

There are two modes for a firmware password: command and full. By default, the firmware password mode will be command, which means you'll be prompted for the password only if you boot from something other than the startup disk. If, for some strange reason, you want the mode to be full, it would mean you'd be prompted for a firmware password at every boot, regardless of what you're booting to.

Terminal

Telecharger vlc media player 2017. A few other commands you might find useful..

sudo firmwarepasswd -check
checks to see if the firmware password is set. allows you to verify you have the correct password (without rebooting).
sudo firmwarepasswd -delete
deletes the firmware password. You'll need the current one to delete it, of course.

If you want to script firmware password setting, someone wrote a fairly simple script that does it. There's also firmware password manager, which is a far more sophisticated way to manage firmware passwords.

Instalar acrobat dc. Your MDM (I know, for example, Mosyle does this) may be able to change firmware passwords for you.

If you're a Munki admin, you can use this update-firmware-password nopkg in a pinch—just keep in mind that it, like the script above, stores the passwords in plain text.

Firmware Password Manager also stores the passwords in a key file in plain text, but that file gets deleted very shortly afterwards.

Nota Bene: If you enable a firmware password, you can get into target disk mode by holding down the Alt/Option key at boot, typing in the firmware password, and then holding down the T key. However, you will be unable to boot into Safe Mode unless you delete the firmware password.

Update May, 2019

Now that there are SecureToken users, the command below no longer works to reset another user's password. Thanks to mario on the MacAdmins Slack for testing.

Acknowledgements

Just a cleaned-up version of directions from Mac Script to change Administrator password

Changing a user password via terminal command

If you ever want to—perhaps for scripting purposes?—change a user's password from the command-line (despite what it says in the link above, you don't have to be logged in as the user to change the user's password, but you do have to be logged in as an admin user), these are the commands you'd use:

sudo /usr/bin/dscl . -passwd /Users/usernamenewpassword
sudo security set-keychain-password -o oldpassword -p newpassword /Users/username/Library/Keychains/login.keychain
Substitute in the actual user's username for username, the actual user's old password for oldpassword and the actual user's new password for newpassword.

If you don't know the old password..

If, for some reason, you (and the user both) have forgotten the user's old password and don't want to deal with keychains issues, you can also just delete the existing keychain (instead of running the second command to update the keychain password):

Macos Sierra Reset Password Terminal Password

Security issues

One strong caveat is that the terminal, by default, will save commands to ~/.bash_history in plain text, so you're essentially storing a user's password in plain text, unless you temporarily disable bash history or later go into the ~/.bash_history file with a text editor (like nano) and delete the offending lines manually.

Nightman cometh episode. If you distribute this as part of a .pkg, nothing will be visible in a .bash_history file, but make sure you keep that .pkg extra secure or delete it after deploying it.

Macos Reset Admin Password

Related





broken image