Hi,
is there an easy way, like a switch or something, to make sure the dynamic Avia folder in uploads doesn’t change back permissions (chmod) to 777 automatically on any minor change of the Website (Theme, wp, Footer etc.)?
I would like to have lower permissions for this folder, permanently.
Thanks and best regards
Hey malanzo,
Please have a look at the following thread:
https://kriesi.at/support/topic/permissions-on-dynamic_avia-directory/
If you need further assistance please let us know.
Best regards,
Victoria
Hi Victoria,
I know this thread. But I still don’t know why it is 777 nor do I know an easy way to change it to a lower permission, that won’t change back automatically.
Why not an easy switch or detailed information on what to put where to disable this?
BR
Hi,
Thank you for the update.
In the thread above, we provided a different version of the function that creates the backend folder. Please check this reply:
// https://kriesi.at/support/topic/permissions-on-dynamic_avia-directory/#post-819144
This will set the folder permission to 755 instead of 777.
$created = wp_mkdir_p( trailingslashit( $folder ) );
@chmod( $folder, 0755 );
Best regards,
Ismael
Hi Ismael,
so, just for clearification:
The snippet
$created = wp_mkdir_p( trailingslashit( $folder ) );
@chmod( $folder, 0755 );
needs to be inserted into the functions.php of the child theme?
Or does the whole code you provided with https://kriesi.at/support/topic/permissions-on-dynamic_avia-directory/#post-819144
need to be inserted in the child theme functions.php?
Best regards