I think that setting all to 777 is not the most secure option.
Basically, my favourite is to change the wordpress to the webserver’s owner. Being:
sudo chown -R www-data:www-data /var/www/
So that the webserver is responsible for handling changes.
Also, you can change the rights to 755 for the whole /var/www branch
sudo chmod -R -c 755 /var/www/
Finally, allow your wp-content/ folder in 775 ( so that you can edit files from the WordPress backend without having to upload files via FTP. ( Not necessarily a best practice but useful from time to time ) via
sudo chmod -R -c 775 /var/www/WORDPRESS/wp-contents/
And you will have a reasonable setup with uploads, editing from backend and a minimum level of security.
Related Posts:
- Why is group ownership with rwx permissions not enough?
- WordPress files owner changed silently
- Chmod 777 to a folder and all contents [duplicate]
- How to change permissions for a folder and its subfolders/files in one step
- How to change permissions for a folder and its subfolders/files in one step
- cd into directory without having permission
- MySQL error 1449: The user specified as a definer does not exist
- Destination directory for file streaming does not exist or is not writable
- How to to secure WordPress file and folder permissions
- WP in Docker – cannot install plugin or upgrade WP
- Create custom permissions for user type
- WordPress REST API – Permission Callbacks
- Can’t upload images due to permissions error
- add_menu_page permissions – what am I doing wrong?
- Recommended File Permissions
- Network Admin “You do not have sufficient permissions to access this page.”
- What’s the difference between the permissions “edit_published_posts” and “edit_posts”
- Wrong permissions when uploading a file through WordPress | IIS
- ftp_nlist() and ftp_pwd() warnings
- WordPress in IIS 7.5 – “cannot create directory”
- What permissions should i have set up for the Database User after i have WordPress set up?
- How can I limit WordPress editor roles to a specific category?
- WordPress can’t find temporary folder, but folder it’s looking at has correct permissions
- WordPress debug.log is not updating
- WordPress file permissions for editing on local Ubuntu development machine
- Troubleshoot “You do not have sufficient permissions to access this page.”
- plugin install wants ftp (chown and 755 not enough)
- can’t change footer
- permissions access error
- Definitive wordpress directory ownership and permissions on linux
- Permissions Issue with WordPress
- Enable plugin installs without FTP with user from same group as Nginx/PHP-fpm
- Iframe a WordPress template
- How to configure apache to create files with correct group owner [closed]
- Moved my WordPress site and now it can’t read the theme
- Applying roles to an admin sub-menu (eg Appearance -> Menus)
- WordPress unable to create folders even though correct NTFS-rights are set
- WordPress php mysql errors – errcode: 13 permission denied
- Safari not “giving Permission to Open This Page” when trying to load pdf from wordpress site [closed]
- Invalid changeset UUID WordPress
- Grant user rights to access certain tabs of a plugin
- Permissions in a Local Dev Environment (OS X)
- Running WordPress as FTP user?
- How to to secure WordPress file and folder permissions
- Return scheduled posts with WP REST API
- wp-content Folder Permissions (777 OK?)
- Permission of 775 not enough
- failed to open stream: Permission denied for WordPress plugin
- Implement Javascript Code in the footer if user is logged in
- Reseting file permissions
- What is the “user account” for WordPress’ file permissions?
- Auto-update failing with “hardened” permissions
- Restrict access to trash, only admin
- How to hide wordpress error message?
- Which wordpress should be obligatory writeable?
- “Backdoor-list.txt” files unexpectedly in server
- How to grant user access the page [closed]
- WordPress 4.4.2 Update not working
- Auto-Upgrade to 4.2.2 fails because theme functions.php is included instead of wp-includes/functions.php
- How to prevent people from seeing certain articles in menus?
- Configure Permissions in Mamp [closed]
- Edit draft from other author
- How to add only a (sub) capacity to an user role?
- Auto-Update Fails
- How to disable admin/editor access to specific user’s posts
- Can’t Change the default theme on WordPress by BitnamI running on AWS
- How to make file not open to public but javascript file under WordPress folder can load it
- Opening a file of the theme from outside
- Visitors “do not have permission to view this content” on home page only
- Permissions Script Not Working
- WordPress does not have the permission to update (IspConfig)
- Blank White page issue in WordPress
- Permissions working but not working
- CentOS 7 cPanel – Setting Correct Permissions
- MAMP File Permissions
- How to lock all published posts so only admin can unlock delete and update permission
- Why do some of my directories need to be writeable that shouldn’t be?
- How to put WordPress website behind the credential for visitors?
- Downloaded WP but Nginx home page still showing
- Pages displays as Restricted to Admin
- Public and Private keys incorrect for user
- Why can I upload files but need FTP login for plugins
- wordpress using WP MVC: You do not have sufficient permissions to access this page
- Uploaded files have permission 000
- Folder Permissions + Security Concerns
- Moved WordPress Directory – Having access issues now
- Strange error “You do not have sufficient permissions to access this page”
- Is it possible to allow a user to only edit categories of posts and nothing else?
- Restrict access to specific content
- WordPress – Public side and Private side
- the_tags only showing when logged in?
- How to give access to programmer/developer to make changes, but prevent undesirable changes? [closed]
- What permissions should my website files/folders have on a Linux webserver?
- Why is “chmod -R 777 /” destructive?
- How do I share a Git repository with multiple users on a machine?
- Amazon Cloudfront with S3. Access Denied
- GRANT SELECT to all tables in postgresql
- Why does sudo command take long to execute?
- Postgresql: what does GRANT ALL PRIVILEGES ON DATABASE do?
- WP Permission still set to Not Writable after I change the permission for the whole folder and files