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

Determine the right group for chown #3480

Open
PadowYT2 opened this issue Dec 24, 2023 · 2 comments
Open

Determine the right group for chown #3480

PadowYT2 opened this issue Dec 24, 2023 · 2 comments

Comments

@PadowYT2
Copy link
Contributor

Describe the feature

This is based on

the correct user.</p><p><strong>Example</strong> command to change owner recursively: <code>sudo chown -R www-data: ' . Output::getClean(ROOT_PATH) . '</code></p>');

basically, on CentOS, it is either nginx/apache and not www-data. Not sure if possible, but PHP should determine the right group

@Derkades
Copy link
Member

get_current_user() should work

@samerton
Copy link
Member

According to the docs, get_current_user() returns the owner of the current file as opposed to the user running the PHP process: https://www.php.net/manual/en/function.get-current-user.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants