Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to stop creation of dirs and files with 777 permissions

  • hughswann
  • hughswann's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago - 4 years 5 months ago #189622 by hughswann
Limesurvey creates directories such as
tmp/assets/4aa930f2/scripts
(which I presume is a file cache).

The directories have permissions '777' and the files have permissions 777 (writable by world)

For security I would like the permissions to be 755 and 644 (writable by owner only)

Is there a config setting where I can set the file permissions of newly created dirs and files?
I have tried adding this to config.php:
'''
/* see www.yiiframework.com/doc/api/2.0/yii-caching-filecache */
'cache' =>[
'dirMode'=>755,
'fileMode'=>644
],
'''
but got an error message, something like "config item 'cache' is read only".
Last edit: 4 years 5 months ago by hughswann. Reason: small grammar and syntax fixes
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose