Can we recreate the "anonymous" user on AEM 6.3, if accidentally deleted, using a curl command?
Try to re-start your instance, it should be re-created on starting the instance.
Anonymous user is special and if you accidentally delete the user, it will be re-created upon startup.
@ChitraMadan mentioned, the anonymous user will be re-created on server restart. If it is publisher, i was facing issue while accessing the package manager after the re-creation. Refer https://www.albinsblog.com/2020/06/crxde-and-package-manager-is-not-accessible-InitServlet-error-whi... for more details.
As mentioned by @ChitraMadan it will be re-created again.
Please check the details of each type of user at https://docs.adobe.com/content/help/en/experience-manager-64/administering/security/security.html
I too have accidently disabled the anonymous user but not deleted it. following your solution, i restarted the instance but still not getting login screen.
How to resolve it now. Any curl command or any post method or replication from publisher will help?
AEM 6.5.8 on linux.