Its generally a bad idea to do everything as root user.
Is there someway I can add a non sudo user and login as that instead? Perhaps using putty?
I run into this whenever i try to use WP CLI and its a massive pain!
Error: YIKES! It looks like you’re running this as root. You probably meant to run this as the user that your WordPress install exists under.