I can not log in after changing the user ID from 501 to 0
Good day to all!
I ask for help! My problem:
Macbook Air, Catalina.
Out of stupidity, without understanding, I changed my ID from 501 to 0 (root) in System Preferences - "Accounts and Users".
As a result, when I try to log into my (the only one on my computer) account, after the standard procedure for entering the user password, I am transferred to a window where it is proposed to enter the Name and Password again.
I’ve gone through all the combinations of names and passwords that I use that have not led to anything.
if I exit this window (left arrow) - I get to the user’s window “other”.
I found a way to solve the problem by deleting the .AppleSetupDone file or by creating another user with admin rights.
But in single - user mode, despite the fact that I am designated as root user, I do not have write and execute permissions.
I tried to set root rights through the dsenableroot command, but there I need a root password that I did not set.
When trying to recover through utilities (cmd + R), nothing came of it:
reinstall the operating system - "cannot continue installing macOS";
resetpassword via terminal - lots of text and nothing.
I do not want to erase the data disc.
Please tell me if there are at least some ideas!
MacBook Air 13", macOS 10.15