@LowkiGG, As per ES code:
So by enabling the property es.insecure.allow.root you can run ES as root user.
bin/elasticsearch -Des.insecure.allow.root=true