Message-ID: <1695209506.3656.1485854675601.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3655_1333870634.1485854675601" ------=_Part_3655_1333870634.1485854675601 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
For security reasons, there is no need for web server to have access to = write to other directories.
First, change www-data
to your web server user.
$ rm -rf app/cache/* app/logs/*=20
$ sudo chmod +a "www-data allow delete,write,append,file_inherit,dir= ectory_inherit" \ app/cache app/logs web $ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_= inherit" \ app/cache app/logs web=20
Some systems don't support chmod +a, but do support another utility call= ed setfacl. You may need to enable ACL support on your partition and instal= l setfacl before using it (as is the case with Ubuntu), in this way:
$ sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx \ app/cache app/logs web $ sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx \ app/cache app/logs web=20
Some systems don't support ACL at all. You will need to set your web ser= ver's user as the owner of the required directories:
$ sudo chown -R www-data:www-data app/cache app/logs web $ sudo find {app/{cache,logs},web} -type d | xargs sudo chmod -R 775 $ sudo find {app/{cache,logs},web} -type f | xargs sudo chmod -R 664= =20
If you can't use ACL and aren't allowed to change owner, you can use chm= od, making the files writable by everybody. Note that this method really is= n't recommended as it allows any user to do anything:
$ sudo find {app/{cache,logs},web} -type d | xargs sudo chmod -R 777 $ sudo find {app/{cache,logs},web} -type f | xargs sudo chmod -R 666= =20
When using chmod, note that newly created files (such as cache) owned by=
the web server's user may have different/restrictive permissions. In this =
case, it may be required to change the umask so that the cache and log dire=
ctories will be group-writable or world-writable (umask(0002)
=
or umask(0000)
respectively).
It may also possible to add the group ownership inheritance flag so new =
files inherit the current group, and use 775
/664
=
in the command lines above instead of world-writable:
$ sudo chmod g+s {app/{cache,logs},web}=20
For your choice of web server you'll need to make sure web server user h=
as read access to <root-dir>
, and write access to the fo=
llowing directories: