Adding self-hosted runner gives Must not run with sudo when running config.sh error

Hello everyone,
I am trying to add a self-hosted runner. When I get to the part where I am supposed to execute config.sh, I get the following message:

Must not run with sudo when running config.sh

I get a similar message when I execute run.sh. Please any pointers as to what I could be doing wrong is highly appreciated. Thank you.

Hello,
I have been to sort the problem by using another user other than root. I now get the following error message:

Failed to resolve full path of the current executable [/proc/self/exe]

Any pointers on how to resolve this would be greatly appreciated.