FTP uploads fail on a LEMP server when at least one access-control layer blocks the operation. The usual causes are vsftpd write commands being disabled, the FTP account lacking Unix write or path-traverse permission, a chroot mapping the FTP path somewhere unexpected, or SELinux denying an otherwise valid discretionary-permission check. PHP-FPM can add a second identity problem when it runs as a different user or group.
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
Diagnose the layers in that order. First verify the daemon policy, then test the real FTP identity with a harmless touch command. Only after that check chroot mapping and SELinux. This approach fixes the specific denial without making the entire web root writable.
As an Amazon Associate I earn from qualifying purchases.
Free tools Windows power users keep installed
One-click scans. No signup required.
What a “permission denied” or 553 error actually means
A message such as 553 Could not create file is an outcome, not a single diagnosis. The FTP client asked vsftpd to perform a filesystem-changing operation and one of several controls rejected it. Uploading a file uses the STOR command; creating folders, deleting, renaming, appending and related operations are also write operations.
vsftpd may be refusing every write command
The Debian reference configuration sets write_enable=NO by default. The vsftpd project FAQ states: “By default, write commands, including uploads and new directories, are disabled.” When this switch is off, changing Unix ownership or running chmod cannot make an upload work because the daemon will not issue the operation.
#1 Best Overall
- [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
- [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
- [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
- [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
- [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
Also check local_enable, guest_enable and, for virtual accounts, virtual_use_local_privs. Virtual users are more restricted by default; setting virtual_use_local_privs=YES gives them the privileges of local users, subject to the filesystem and other daemon controls.
The account used for the transfer may not be the account you expect
FTP credentials do not necessarily map to the shell user who owns the website. Determine the effective Unix account and inspect every directory component between the filesystem root and the upload directory. The account needs write permission on the destination and execute (traverse) permission on every parent directory. A writable final directory is useless if the account cannot traverse /var, /var/www or the application directory above it.
Recommended Free Tools
A chroot changes the path the FTP user sees
With chroot_local_user or a virtual-user local_root, the FTP session is jailed. A client path such as /upload may correspond to a host path such as /srv/site/upload, not the server’s real filesystem root. The chroot root should remain protected, with a writable child directory below it. Giving unrestricted filesystem access to solve a path problem creates a serious security exposure.
SELinux can deny access after Unix permissions pass
On an enforcing SELinux system, discretionary access control (owner, group and mode bits) can look correct while the mandatory policy still blocks vsftpd. SELinux distinguishes read-only public content (public_content_t) from trees intended for FTP writing (public_content_rw_t). The ftp_home_dir and allow_ftpd_anon_write controls affect different access patterns; enable only the boolean and context required by your design.
PHP-FPM may be a second writer with a different identity
PHP-FPM pools run with configured user and group values. If FTP writes as one account while PHP-FPM writes as another, each process needs suitable group membership and directory permissions. Do not expose the PHP-FPM FastCGI listener to an untrusted network: PHP documentation warns that an exposed FastCGI connection can enable code execution.
Rank #2
- 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
- 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
- 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
- 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
- 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
Use this troubleshooting sequence before changing permissions
Run the checks from an administrative shell. Replace FTPUSER and the example path with your actual account and directory. The temporary file test is deliberately harmless and gives a clear split between filesystem and FTP configuration problems.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
-
Inspect the daemon policy and reload it
sudo grep -E '^(write_enable|local_enable|guest_enable|virtual_use_local_privs|chroot_local_user|local_root)' /etc/vsftpd.conf sudo systemctl reload vsftpdFor ordinary local users,
write_enable=YESis required for uploads and other write commands. Confirm that local logins are enabled when you use local accounts. For virtual users, verify whether their privilege mode intentionally differs from local users. A reload applies the configuration without stopping the service. -
Identify the account and inspect every path component
id FTPUSER namei -l /var/www/example/upload ls -ld /var/www /var/www/example /var/www/example/uploadidshows the numeric identity and supplementary groups that matter to Unix permission checks.namei -ldisplays ownership and mode bits for each component, making a missing execute bit on a parent directory visible. The final directory must grant write access to the FTP account or one of its groups; every parent must grant execute (traverse) access. -
Test the filesystem as the FTP identity
sudo -u FTPUSER touch /var/www/example/upload/.permission-test sudo -u FTPUSER rm /var/www/example/upload/.permission-testIf
touchfails, fix ownership, group membership, mode bits or parent-directory traversal before editing FTP settings. If it succeeds, the Unix layer permits the operation and the remaining suspects are chroot or local-root mapping, SELinux, daemon policy details, or an FTP client using a different account or path. -
Confirm the path inside a chroot
Check
chroot_local_userandlocal_rootin the configuration, then compare the client’s current directory with the host path you tested. Create the writable directory below the jail root and upload there. Keep the jail root itself non-writable when possible; a protected root plus writable child is safer and avoids daemon refusal caused by an unsafe chroot layout.Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord- [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
- [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
- [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
- [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
- [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
-
Check SELinux state and denials
getenforce ls -Zd /var/www/example/upload sudo ausearch -m AVC -ts recentEnforcingmeans SELinux decisions are active. The context shown byls -Zmust match the intended use. Recent AVC records identify the subject, target and denied operation. If the Unixtouchtest passes but an enforcing host still rejects FTP, correct the label or narrowly enable the relevant boolean, then repeat the test.
Apply the fix that matches the failed layer
| Failure layer | Typical indicator | Targeted correction | Security scope |
|---|---|---|---|
| vsftpd policy | FTP rejects uploads even though a shell test as the account succeeds | Enable write_enable; verify local or virtual-user settings and reload the daemon |
Allows filesystem-changing FTP commands for accounts admitted by the daemon |
| Unix ownership, groups or modes | sudo -u FTPUSER touch ... fails |
Grant the account or a dedicated deployment group write access to the destination and execute access on parents | Applies to all processes using that Unix identity or group |
| Chroot or local-root mapping | The tested host path differs from the path visible in FTP | Create and permission a writable child inside the jail; correct local_root |
Changes only the session’s visible namespace |
| SELinux policy | Unix checks pass, but AVC records appear on an enforcing host | Use the correct file context and the narrow boolean required for the operation | Mandatory policy remains active for every process, including FTP and PHP-FPM |
| LEMP identity split | FTP can write, but PHP upload or cache operations fail, or vice versa | Verify PHP-FPM pool user/group and design shared directories around a dedicated group | Coordinates access between separate service identities |
Fix vsftpd’s write policy safely
Edit the active configuration file, commonly /etc/vsftpd.conf, and set write_enable=YES. Keep authentication choices explicit: local_enable=YES is for local Unix accounts, while guest or virtual-user settings follow a separate account database and mapping. Do not enable broad anonymous writing merely to make a client work.
After saving, run sudo systemctl reload vsftpd and retry a small upload. If a reload reports an error, inspect the service status and logs rather than repeatedly changing permissions. For virtual users, decide whether they should receive local-user privileges. virtual_use_local_privs=YES can be appropriate for a controlled deployment account, but it expands what that virtual account can do within the filesystem permissions you grant it.
Build a Unix permission model for deployments and uploads
Use a dedicated group instead of a world-writable web root
Create a group whose members are only the deployment or upload services, add the FTP account and the PHP-FPM pool account when both genuinely need to write the same directory, and assign that group to the specific writable directory. Keep released application code owned by an administrative or deployment identity and readable and traversable by nginx. Runtime uploads, generated files and caches should be separate from release directories so that a compromised upload cannot overwrite application code.
Illustrative administrative operations are:
sudo groupadd webdeploy
sudo usermod -aG webdeploy FTPUSER
sudo usermod -aG webdeploy PHPFPMUSER
sudo chown -R DEPLOYOWNER:webdeploy /var/www/example/upload
sudo chmod -R g+rwX,o-rwx /var/www/example/upload
Substitute the actual PHP-FPM pool user and a directory that is intended to be writable. Review the resulting modes with ls -ld; do not apply recursive changes to the entire document root unless every file truly belongs in the shared-write area. Existing processes may need to restart or re-login before supplementary group membership is recognized.
Rank #4
- Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
- Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
- All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
- Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
- Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Preserve traversal while limiting write access
Parent directories need execute permission for the account or its group, but they do not need to be writable. Granting write on /var/www or the whole site hides which identity is failing and allows unrelated users to replace files. Place only the upload or release subdirectory in the dedicated group, and keep configuration files, secrets and executable code outside that write boundary.
Correct chroot and local-root layouts
A safe layout has a protected jail root and a writable child, for example a jail root containing upload. The FTP client should change into the child directory after login. If the client starts in a directory that does not exist inside the jail, it may report a misleading permission or path error.
Check the effective mapping for each account, especially when virtual users use per-user local_root values. Test the exact host directory with sudo -u FTPUSER touch, then test the corresponding FTP-visible path. Do not solve mapping confusion by granting unrestricted filesystem access; the vsftpd reference warns that such options can create serious security problems.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Handle SELinux without losing the policy boundary
Distinguish read-only and writable content types
For public trees served by the web server, public_content_t is read-only in the SELinux model. A directory intended for FTP writing uses public_content_rw_t when that policy is appropriate. Label only the upload or deployment path, not the complete web root.
Make labels persistent
Temporary chcon changes can disappear after relabeling or policy maintenance. Define the intended context with semanage fcontext and apply it with restorecon, then verify with ls -Zd. This preserves the design across reboot, relabel operations and package updates.
Best Value
Enable booleans narrowly
The SELinux policy includes controls such as ftp_home_dir and allow_ftpd_anon_write. A home-directory FTP requirement is different from anonymous public-tree writing. Enable only the boolean that matches the account and path, and record the change so it can be reviewed later. After changing a context or boolean, repeat the harmless file-creation test and inspect AVC records if the denial continues.
Make FTP and PHP-FPM share files without making everything writable
Start by reading the PHP-FPM pool configuration to determine its effective user and group. Compare those values with id FTPUSER and the group assigned to the writable directory. If both services must write the same runtime data, use one dedicated group for that directory and grant group write access there. Nginx generally needs read and execute access to released files, not write access.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallSeparate three classes of data:
- Releases: deployed code and static assets. FTP or a deployment process writes during a controlled release; the web server reads them.
- Runtime uploads: user-generated files. FTP and PHP-FPM may both write here when required; keep it outside executable code paths when possible.
- Caches and generated data: application-owned runtime state. Give PHP-FPM access only where the application needs it.
This separation lets you solve a real shared-write requirement without granting FTP and PHP-FPM write access to secrets, configuration or every file served by nginx.
Why common “fixes” fail
chmod 777 does not override daemon or SELinux policy
Mode 777 changes Unix discretionary permissions only. It cannot turn on write_enable, change a chroot path, or override an SELinux denial. It also grants write access to unrelated local users and processes, increasing the impact of a compromised account. Use the identity and path tests to grant the smallest required permission instead.
Changing the web-root owner can break another service
Making the FTP account the owner of the entire document root may allow uploads but can prevent the administrator, nginx or PHP-FPM from operating as designed. Ownership should reflect the directory’s role: deployment ownership for releases, a controlled group for shared runtime data, and read/execute access for the web server.
Fixing only the final directory ignores parent traversal
A destination can show group-write bits while an ancestor denies execute permission. Always inspect the complete path with namei -l; do not infer access from the last ls -ld line alone.
Quick Recap
Choosing among the fixes
| Approach | Security scope | Survives reboot, relabel and updates | Distribution fit | When FTP and PHP-FPM share a path |
|---|---|---|---|---|
write_enable=YES |
Daemon-level permission to issue write commands | Yes, as configuration | Debian, Ubuntu and other vsftpd installations | Still requires Unix and SELinux access for both identities |
| Dedicated Unix group and directory modes | Specific users and directories | Yes when ownership and modes are managed persistently | All Linux distributions | Preferred foundation for a deliberately shared writable directory |
Chroot or local_root correction |
Limits and remaps what FTP can see | Yes, as daemon configuration and directory layout | All vsftpd installations | PHP-FPM uses the host path, so map and permission that path separately |
| SELinux context or boolean | Mandatory policy for labeled files and services | Persistent with semanage fcontext and recorded boolean settings |
SELinux-based distributions | Both service identities remain subject to labels and policy |
After the change: verify the complete path
- Reload vsftpd and confirm the service remains active.
- Run the
sudo -u FTPUSER touchand remove test again. - Upload a small non-sensitive file through FTP to the exact directory visible in the session.
- Confirm the file’s owner, group, mode and SELinux context with
ls -landls -Zwhere applicable. - Exercise the PHP-FPM operation that previously failed, then check that nginx can read the resulting file without gaining unnecessary write access.
- Review daemon and audit logs if the FTP client still reports 553; the remaining error should now identify a specific mapping, identity or policy mismatch.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

