can i set file permission in wp-admin to be 775? is it easy to get hacked if file in wp-admin set to be 775? thanks! I would like to know if i set file permission in wp-admin to 775, would it cause any security problem or easy to get hacked
CodePudding user response:
Yea you should set all files/directories to 555, only uploads directory should be with permission 775 so users can upload new files, also don't forget cache directory (if you have one), and plugin directory so that user can update and install plugins.
CodePudding user response:
It is unusual. Generally, WordPress directory and folder permissions should be set to 755, and most file permissions need to be set to 644. These are also the file permissions that WordPress recommends you set for your site. These are also the permissions needed for WordPress auto update to function correctly.
To explore more about WordPress file permission, you can read this https://www.malcare.com/blog/wordpress-file-permissions/#:~:text=Generally, WordPress directory and folder,auto update to function correctly.
Also, you can read this https://wordpress.org/support/article/hardening-wordpress/#file-permissions
Thank you