Can't run commands as not root user

Hi, I installed ghost as user ghost and all was perfectly good to time when I accidently changed permissions. Now when I want to start ghost as user ghost errors occures:

One or more errors occurred.

1) Ensuring user is not logged in as ghost user

Message: You can't run commands with the "ghost" user. Switch to your own user and try again.
Help: https://ghost.org/docs/install/ubuntu/#create-a-new-user

What can I do?

If you created, a user called ghost to install Ghost, this won’t work, and will cause a conflict with the ghost-cli.

Follow the official instructions:

So how can I change user for Ghost?

The user ghost does not have a login. You should have a login on the server, e.g., tobi, that is a member of the group sudo (among other. Use this to install Ghost, and it will create the ghost user.

Use tobi when using ghost-cli.

The current installation is broken, so remove the ghost user you created, and start over.

1 Like