Unable to unlock system preferences

Hi,


I've recently changed my name and was trying to edit my user profile on my macbook pro.


I'm now unable to unlock the system preferences. In the users & groups section my old user name is no longer an admin and is just standard. I can't add another profile as a box comes up to enter my user name and password, and when I do this the box just shakes and won't unlock.


I need to somehow make my old user name the admin again and set up a temporary user so I can edit my profile and change my name. I just haven't got a clue how to.


I found an old post that mentions file vault in security, and it's turned off on my Mac. I haven't got a backup to restore from. Using Command & R to boot into single user mode I've tried to reset my password from the terminal, but that didn't work. As it stands I can use my macbook but I won't be able to add software or updates, so before long I'm going to have a paperweight unless I can partition the disk and install a Linux distro. I'll be stuffed for iTunes though :(


I'm really hoping someone might be able to help.


Thanks

Posted on Apr 4, 2021 4:03 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 5, 2021 1:11 PM

To expand on HWTech's great advice...


See if you can create a new administrator account by restarting the Setup Assistant:

  1. Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
  2. Check and repair the drive by typing /sbin/fsck -fy then ↩ enter - as directed by the on-screen text.
  3. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter.
  4. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  5. Reboot by typing reboot then ↩ enter.
  6. Complete the setup process, creating a new admin account.


Be very careful to notice the spaces in those Terminal Commands.


Once you've done that the computer reboots and it's like the first time you used the machine, except all your data will still be there. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!

Similar questions

3 replies
Question marked as Top-ranking reply

Apr 5, 2021 1:11 PM in response to Madmoose72

To expand on HWTech's great advice...


See if you can create a new administrator account by restarting the Setup Assistant:

  1. Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
  2. Check and repair the drive by typing /sbin/fsck -fy then ↩ enter - as directed by the on-screen text.
  3. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter.
  4. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  5. Reboot by typing reboot then ↩ enter.
  6. Complete the setup process, creating a new admin account.


Be very careful to notice the spaces in those Terminal Commands.


Once you've done that the computer reboots and it's like the first time you used the machine, except all your data will still be there. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!

Apr 4, 2021 5:58 PM in response to Madmoose72

If you changed the user account short name or any account settings related to this, then you did so incorrectly and should have followed the instructions in this Apple article:

https://support.apple.com/en-us/HT201548


To fix the issue requires creating a new admin user account and following the instructions in the article I just linked above. I've posted instructions for doing creating a new admin user account multiple times on these forums so do a search to find the instructions.


Your other option is to restore from a backup made before you made these changes.


Apr 5, 2021 4:20 AM in response to HWTech

Thanks. You're absolutely right that I did this incorrectly, however I've already done it and I can't fix anything from reading the correct process.


As I said, I'm unable to unlock system preferences to create a new admin user, and as I also said I don't have a backup to restore from.


None of the instructions I've searched have fixed my problem.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unable to unlock system preferences

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.