(04-01-2017, 09:19 PM)ponte Wrote: hi all,
is there a chance a chmod operation could be added to his plugin?
Many thanks
Default settings have chmod turned off.
With some adjustments you can turn it on.
Here's how I got it working on a CentOS 7 host:
(1) /etc/sentora/panel/modules/ELFileManager/app/php/elFinderVolumeDriver.class.php
Change 'statOwner' and 'allowChmodReadOnly' (on or about lines 257-259) to true.
Code:
'statOwner' => true,
// allow exec chmod of read-only files
'allowChmodReadOnly' => true,
(2) /etc/sentora/panel/modules/ELFileManager/app/js/elfinder.full.js
Change self.checkstate (on or about line 10984) to this.checkstate.
Code:
return !this._disabled && this.checkstate(this.files(sel)) ? 0 : -1;
(3) Install php-posix and php-process
yum install php-posix php-process
(4) restart web services
systemctl restart httpd
Note: 'Change Mode' will appear on the default theme's toolbar as a yellow asterisk at the right of the 'Get Info'. The other themes' toolbar: CHMOD appears in the same location but only as an empty box with no icon.