Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Craft commands should not be run as the root/super user. #2

Closed
rostockahoi opened this issue Aug 19, 2021 · 1 comment
Closed

Craft commands should not be run as the root/super user. #2

rostockahoi opened this issue Aug 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@rostockahoi
Copy link
Contributor

Describe the bug

When running some composer scripts Craft says: "Craft commands should not be run as the root/super user." and points to a docs site: https://craftcms.com/knowledge-base/craft-console-root

However, there is the option to continue the script anyways.

Is this something to worry about? Is there even a non-root user in that Docker container?

To reproduce

Steps to reproduce the behaviour:

  1. Install plugindev and run for example make composer post-craft-update

Expected behaviour

Composer script runs successfully

Versions

  • Craft version: 3.7.9
@rostockahoi rostockahoi added the bug Something isn't working label Aug 19, 2021
@khalwat
Copy link
Contributor

khalwat commented Aug 23, 2021

It's fine in local dev, just put something like this in your .env file:

# Allow superuser in local dev
CRAFT_ALLOW_SUPERUSER=1
COMPOSER_ALLOW_SUPERUSER=1

Addressed in: e567ada

@khalwat khalwat closed this as completed Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants