• I am noticing that after I update plugins via the plugins menu, the specific plugin folder in the plugins folder losses write permissions for the group ( i.e it goes from “drwxrws—” “drwxr-s—“). Is this normal or is this a bug?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That may be how you have your file permissions are set in wp-config. The site should work with 750 on directories. Check your wp-config.php to see if there are overrides.

    https://codex.www.ads-software.com/Editing_wp-config.php#Override_of_default_file_permissions

    Thread Starter mishaua

    (@mishaua)

    I had an override defined that was set to:
    define(‘FS_CHMOD_DIR’, (02770 & ~ umask()));
    define(‘FS_CHMOD_FILE’, (02660 & ~ umask()));

    I changed it to
    define(‘FS_CHMOD_DIR’, (0770 & ~ umask()));
    define(‘FS_CHMOD_FILE’, (0660 & ~ umask()));

    and now the permissions change to “drwxr-x—” so it looks like the sgid part of the override is applying correctly but the group permissions always get stripped of the write permissions after a plugin update. Any other suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Updates change permissions’ is closed to new replies.