Skip to content

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

@MrMage

Description

@MrMage

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug confirmedBug reproduced and qualified

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions