This question already has an answer here:
I’m new to MacOS world.
By accident I deleted the admin partition (Directory). Every time when I want to install a programme, the system ask me for the admin login. I enter the login but it is not accepted.
I tried yesterday to reinstall a new OS via recovery to get everything new. The reinstallation was successful (it took more than 2 hours ), but as started the system I found that all my data is still there and I still have the same admin login problem and the same username.
I have tried resetpassword via Recovery but I get a window which says there is user account available
my question is:
How can i fix this problem quickly?
Any advice will be apreciated