Unable to make system changes on MacBook Air after changing administrator name

Good day!

I need some help with admin account on our macbook air 2017, High Sierra.


I tried to change the administrator’s name without creating an additional administrator account (my mistake); now it seems I crashed the administrator’s name (because I can log in with the correct password, but I can’t make any system changes — this requires entering administrator name and password; I tried entering the old administrator name and the new one — but to no avail). I should say that I changed the administrator’s name via the “Users & Groups” settings form; I manually changed the fields “account name", "full name" & "home directory".

How can i fix this or what should i need to do?

Many thanks in advance!


Best regards,

Guzel

MacBook Air 13″, macOS 10.13

Posted on Sep 8, 2026 1:50 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 8, 2026 8:36 AM

Here are the instructions that @WheelieNick mentioned:


Try booting into Single User Mode using Command + S.


Follow the instructions listed on screen to run a file system check and mount the file system in read+write mode. I'm reproducing the commands here from memory:


fsck  -fy  /
mount  -uw  /


Then issue the following command:


rm  -i  /var/db/.AppleSetupDone


You will be prompted to confirm you want to delete the ".AppleSetupDone" file. If you are sure you are deleting the correct file then press "y" followed by pressing the "Return" key to submit your response. Otherwise press "n" followed by the "Return" key to cancel the deletion of the listed item.


Now type:


reboot


to restart the Mac. By deleting the ".AppleSetupDone" file it will trick macOS to run Setup Assistant on the next system boot where you will be able to create a new admin user account. Once you create and log into the new admin user account you can fix the mistake by using the instructions in the following Apple article as a guide:

Change the name of your macOS user account and home folder - Apple Support


2 replies
Question marked as Top-ranking reply

Sep 8, 2026 8:36 AM in response to guzel112

Here are the instructions that @WheelieNick mentioned:


Try booting into Single User Mode using Command + S.


Follow the instructions listed on screen to run a file system check and mount the file system in read+write mode. I'm reproducing the commands here from memory:


fsck  -fy  /
mount  -uw  /


Then issue the following command:


rm  -i  /var/db/.AppleSetupDone


You will be prompted to confirm you want to delete the ".AppleSetupDone" file. If you are sure you are deleting the correct file then press "y" followed by pressing the "Return" key to submit your response. Otherwise press "n" followed by the "Return" key to cancel the deletion of the listed item.


Now type:


reboot


to restart the Mac. By deleting the ".AppleSetupDone" file it will trick macOS to run Setup Assistant on the next system boot where you will be able to create a new admin user account. Once you create and log into the new admin user account you can fix the mistake by using the instructions in the following Apple article as a guide:

Change the name of your macOS user account and home folder - Apple Support


Unable to make system changes on MacBook Air after changing administrator name

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