Open PadowYT2 opened 9 months ago
get_current_user() should work
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
Describe the feature
This is based on https://github.com/NamelessMC/Nameless/blob/fcaa51708c23d592a92209d9ff7728f557070647/core/init.php#L43 basically, on CentOS, it is either nginx/apache and not www-data. Not sure if possible, but PHP should determine the right group