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

Suggestion: check if the user can run sudo in PHP proxy #253

Open
MrMage opened this issue May 4, 2021 · 2 comments
Open

Suggestion: check if the user can run sudo in PHP proxy #253

MrMage opened this issue May 4, 2021 · 2 comments
Labels
bug confirmed Bug reproduced and qualified
Projects
Milestone

Comments

@MrMage
Copy link
Contributor

MrMage commented May 4, 2021

Due to permission issues, I need to run a few of my scripts as www-data (e.g. via sudo -E -u www-data php artisan ...).

This currently triggers an error message, because the php proxy tries to run sudo chown docker:docker /opt/php_env_var_cache.php, which www-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 have sudo privileges).

@mistraloz mistraloz added this to the V4 milestone Nov 4, 2021
@mistraloz mistraloz added this to Needs triage in Issue via automation Nov 4, 2021
@mistraloz mistraloz added the bug Something isn't working label Nov 4, 2021
@mistraloz mistraloz moved this from Needs triage to Medium priority in Issue Nov 9, 2021
@stale
Copy link

stale bot commented Jan 3, 2022

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.

@stale stale bot added the stale Issues inactives for a while (automatically) label Jan 3, 2022
@mistraloz mistraloz removed the stale Issues inactives for a while (automatically) label Jan 4, 2022
@MrMage
Copy link
Contributor Author

MrMage commented Jan 4, 2022

Still relevant :-)

@mistraloz 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
Labels
bug confirmed Bug reproduced and qualified
Projects
Issue
Medium priority
Development

No branches or pull requests

2 participants