RSS Feed/News Running XenForo 2 Upgrade fails due to ownership even though Linux group has perms

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,496
Points
823

Reputation:

PHP:

Code:
if (!$isWindows)
        {
            // Only allow the upgrade to run if we're not likely to cause mixed file ownership.
            // This is possibly over restrictive. (If relaxed in the future, we should special case
            // to prevent using root unless the files are owned by root.)

$uid = function_exists('posix_getuid') ? posix_getuid() : fileowner(File::getTempFile());
            if ($uid !== fileowner(__FILE__))
            {
                $error =...

Read more

Continue reading...
 
Status
Not open for further replies.
Top