GetSimple Support Forum
QUESTION Warning: chmod(): Operation not permitted - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: QUESTION Warning: chmod(): Operation not permitted (/showthread.php?tid=13101)



Warning: chmod(): Operation not permitted - craiga - 2020-02-08

Does anyone know why we get this warning? I know it's related to file ownership, just wondered if anyone else noticed this.

Warning: chmod(): Operation not permitted in /var/www/html/projects/getSimple/intranet_v2/admin/inc/basic.php on line 322

code from the file is:


PHP Code:
    // debugLog('XMLsave: ' . $file . ' ' . get_execution_time());
    
if(getDef('GSDOCHMOD') === false) return $success;
    if (
defined('GSCHMOD')) {
        return 
$success && chmod($fileGSCHMOD);
    } else {
        return 
$success && chmod($file0755);
    } 


Thanks


RE: Warning: chmod(): Operation not permitted - Bigin - 2020-02-08

You need to be the owner of the $file.