if you are going to use sudo, you need to login as core