Transfer website files without sharing your main login
Use a limited account, preview an rsync transfer and verify the destination before copying files.
Read the guideVPS security · Practical guide
Check ownership, identify writable folders and avoid blanket permission changes.
Archive placement: December 2024

A 403 error or a failed upload can come from ownership, permissions or the application itself. The safest fix is to identify the exact file and the user that needs access. This guide shows how to inspect those details and correct a small example without making the entire website writable.
Start with one specific problem, such as an image that returns Forbidden or a folder that refuses an upload. Note its address and when the failure occurs. Changing permissions across the whole account makes the original problem harder to find.
File Manager shows access settings for the hosting account. It does not prove that ownership or a server security rule is correct. If the expected item is missing, first check the document root and upload destination.
A domain can point to a subfolder while another domain in the same account uses a different root. Correcting the wrong copy can appear to do nothing and can affect a separate website.
For a missing image, check that the file exists before changing access. For an upload failure, check cPanel disk usage and the application error message too. A full quota will not be fixed by allowing more write permissions.
Most website code only needs to be read by the web process. Uploads, cache and application storage may need write access. Check application documentation for the exact folders rather than granting write access to the whole site.
Keep database exports, private keys and configuration backups outside the public document root. File permissions do not prevent a publicly served backup from being downloaded if the web server exposes it. Remove old backup files from public folders.
The right value depends on the application and the way the host runs it. Many ordinary public website folders use 755 and files use 644, but those examples are not a reason to overwrite every item in an account.
Avoid 777 as a general fix. Configuration files containing database credentials may need more restrictive settings than public assets. Ask support to check ownership if the correct permission still fails or File Manager will not let you save it.
A website often needs write access only to an uploads or cache folder. It should not need every script and configuration file to be writable by everyone.
Do not apply a recursive permission change to the entire home directory. Email folders, private keys, backups and application configuration are different kinds of data and should not all have the same access settings.
Test the affected page or upload again, then read the relevant log. A full disk, incorrect path or security policy can look like a permission problem. Fix the cause shown by the error instead of loosening access repeatedly.
Record the working owner and permissions for the folders you changed. This makes accidental changes easier to spot after a deployment and gives the next person maintaining the site something useful to work from.
Load the affected page in a private browser window, then repeat the upload or edit that originally failed. Read the matching web-server or application log entry. For WordPress, verify an image upload and that existing media still loads. Do not settle for a homepage test when the original problem was an upload directory.
Keep a note of the original owner, group and modes for anything you change. If the change has no effect, restore those values and investigate the next likely cause. Remove any temporary write access once the application task is complete.
No. Identify the upload folder, check quota and use the access settings supported by your application and host. Broad write access can expose much more than the folder that needs the correction.
Check the exact document root and filename, then collect the error and its time for support. Ownership, a web-server rule or a security block can cause a similar error; changing permissions again may not help.