-
Notifications
You must be signed in to change notification settings - Fork 135
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
Suggestion: check if the user can run sudo
in PHP proxy
#253
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required. |
Still relevant :-) |
mistraloz
added
bug confirmed
Bug reproduced and qualified
and removed
bug
Something isn't working
labels
Jan 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Due to permission issues, I need to run a few of my scripts as
www-data
(e.g. viasudo -E -u www-data php artisan ...
).This currently triggers an error message, because the
php
proxy tries to runsudo chown docker:docker /opt/php_env_var_cache.php
, whichwww-data
does not have permission to do.For now, I am suppressing that error by directly calling
real_php
instead, but it would be nice of the PHP proxy could simply skip its extra setup steps if it is called as the wrong user (or if the current user simply doesn't havesudo
privileges).The text was updated successfully, but these errors were encountered: