how to fix "myuser is not in the sudoers file"

sudo su

myuser is not in the sudoers file. This incident will be reported.

My server use centos7

What is the context of your problem? Why are you trying to use sudo? Did you create this user or its CyberPanel created user?

Users created through CyberPanel does not have sudo access due to security reasons.