Fix vsftpd 550 Permission Denied: 3 Causes + 1 Gotcha

A flat vector illustration of a stylized server folder with an open padlock. Text: FIX VSFTPD 550.

We may earn a referral fee at no additional cost to you when you shop through the links on this page.

Your FTP client returns 550 Permission denied on vsftpd when you try to upload, create a directory, or rename a file. This DevAnswers fix walks the three real causes (writes disabled, chroot writable-root, filesystem permissions) plus one common follow-on permission gotcha.

Prerequisites 

  • SSH access with sudo on the affected Ubuntu or Debian server.
  • vsftpd installed and running. Confirm with sudo apt install vsftpd and systemctl is-active vsftpd.
  • An FTP client to reproduce and verify the fix: command-line ftp (install with sudo apt install ftp), lftp, or a graphical client like FileZilla.
  • Permission to edit /etc/vsftpd.conf and restart the service.

What “550 Permission denied” Actually Means 

FTP 550 is the “requested action not taken” response code in the FTP protocol. It is a catch-all the server returns whenever a filesystem-changing command (upload, mkdir, rename, delete) is refused. In vsftpd specifically, three distinct underlying conditions produce it, and they each require different fixes. Reading random fixes online will only work if you happen to land on the one matching your situation; the table below maps what you see to which fix you actually need.

SymptomLikely causeJump to fix
Every write fails (uploads, mkdir, rename, delete all return 550 for every user)Writes are globally disabled in vsftpd.conf→ Cause 1
Login banner shows “OOPS: refusing to run with writable root inside chroot()”, then everything failsvsftpd’s chroot writable-root security check fired→ Cause 2
Login works, listing works, but uploads to a specific directory failFilesystem permissions on the upload directory→ Cause 3
Upload succeeds, but the file is owner-only readable (other services cannot read it)Not strictly a 550. Umask and file_open_mode are stripping permissions on new files→ Gotcha

If you cannot tell which row matches your situation from your FTP client output alone, start with the log file. It usually pinpoints the cause in one line.

Read the vsftpd Log First 

Before editing any configuration, enable the vsftpd log and tail it while you reproduce the 550. The log either pinpoints the cause (Cause 2 has a unique signature) or at least narrows the search (Causes 1 and 3 share a generic permission-denied pattern that still beats blind config edits). Open the config file in your editor of choice (substitute vi or any other editor for nano if you prefer):

Terminal
sudo nano /etc/vsftpd.conf

Confirm the following two directives are set (uncomment them if they are commented out, add them at the bottom if they are missing):

/etc/vsftpd.conf
xferlog_enable=YES
dual_log_enable=YES

With xferlog_enable=YES, vsftpd records transfers; with dual_log_enable=YES, it writes both a wu-ftpd style transfer log at /var/log/xferlog and its own native log at /var/log/vsftpd.log. The native log is the one you want for diagnostics, and its location can be overridden via the vsftpd_log_file directive if you need it elsewhere. After restarting, tail it while you trigger the 550 in your FTP client. The capital -F flag is important here: it retries on a missing file, which matters because vsftpd creates the log lazily on the first log entry:

Terminal
sudo systemctl restart vsftpd
sudo tail -F /var/log/vsftpd.log

Cause 2 is the easiest to identify from the log: it writes a unique “refusing to run” message at the moment your FTP session opens, so if you see that, you can jump straight to Cause 2. Causes 1 and 3 share a more generic permission-denied signature in the log, which does not by itself tell you which of the two is firing. If the log shows the failed command with a generic permission-denied note, check Cause 1 first (it costs nothing to verify) and then Cause 3.

For deeper coverage of the vsftpd log file itself and where the various log entries land on Ubuntu and Debian, see our vsftpd log location guide.

Cause 1: Writes Are Globally Disabled 

The single most common cause is the simplest: vsftpd ships with write_enable=NO as its compiled default. Per the official directive reference, this setting controls whether any FTP commands that change the filesystem (STOR, DELE, RNFR, RNTO, MKD, RMD, APPE, SITE) are allowed at all. If your configuration does not explicitly turn writes on, every write returns 550, no matter what your filesystem permissions look like.

Diagnose by checking the active value:

Terminal
grep -E '^[[:space:]]*write_enable' /etc/vsftpd.conf

If that command returns nothing, the directive is either missing or commented out, which means writes are off by default. If it returns write_enable=NO, writes are explicitly off. Either way the fix is the same. Edit /etc/vsftpd.conf, uncomment or add the directive, and set it to YES:

/etc/vsftpd.conf
write_enable=YES

Then restart the service so the change takes effect:

Terminal
sudo systemctl restart vsftpd

For anonymous uploads (rare on modern setups but still supported), anon_upload_enable and anon_mkdir_write_enable are additional gates on top of write_enable. They have no effect unless write_enable is already YES, so set the global gate first and confirm normal user uploads work before adjusting anonymous behaviour.

Cause 2: chroot + Writable Root Footgun 

This is the trap that catches almost everyone setting up vsftpd for local users for the first time. When chroot_local_user=YES is enabled (a standard hardening for shared servers), vsftpd refuses to run with a chroot directory that is writable by the user inside it. The connection banner reads:

vsftpd connection banner
500 OOPS: vsftpd: refusing to run with writable root inside chroot()

Everything else then fails with 500 or 550 because the chroot setup itself was rejected. The Arch Linux wiki documents two recognised paths out of this. The first is permissive: add allow_writeable_chroot=YES to your /etc/vsftpd.conf, which tells vsftpd to skip the check. This is fine for a single-purpose lab box, but the directive’s own documentation says explicitly that enabling it violates the vsftpd security model and should only be used by readers who understand the implications.

Use allow_writeable_chroot=YES only on lab or single-tenant servers. The check exists because a writable chroot root lets a compromised FTP user escape the jail by replacing system binaries inside it. On any internet-facing server, use the structural fix below instead.

The structural fix is the one upstream actually recommends. Make the user’s home directory non-writable, then create a writable subdirectory inside it for uploads. For a user named ftpuser:

Terminal
sudo chmod a-w /home/ftpuser
sudo mkdir -p /home/ftpuser/files
sudo chown ftpuser:ftpuser /home/ftpuser/files
sudo chmod 755 /home/ftpuser/files
sudo systemctl restart vsftpd

The first chmod a-w removes write permission from the chroot root itself, which satisfies vsftpd’s security check. The files subdirectory then provides somewhere writable for actual uploads. The user lands at their home directory on login and immediately changes into files to upload. This pattern preserves the chroot security model and works on any vsftpd version from 2.3.5 onward.

Cause 3: Filesystem Permissions Don’t Match 

With write_enable=YES set and the chroot satisfied, the third class of 550 is plain filesystem permissions on whatever directory the user is trying to write into. The signature is specific: login works, navigation works (cd and ls succeed), but the moment you try put or mkdir, you get 550. This means vsftpd is not refusing the action; the underlying filesystem is.

Inspect the target directory’s ownership and mode:

Terminal
ls -ld /home/ftpuser/files

The directory should be owned by the FTP user, or by a group the user belongs to, with at least 755 on a single-user setup or 775 if a shared group needs write. If you see ownership like root:root on a directory the FTP user is meant to write into, fix it:

Terminal
sudo chown ftpuser:ftpuser /home/ftpuser/files
sudo chmod 755 /home/ftpuser/files

This cause is closely paired with Cause 2. Readers who apply the structural chroot fix above have already set the correct ownership; readers who chose allow_writeable_chroot=YES still need to ensure the actual upload destination is writable by the user. For a worked example of a full /etc/vsftpd.conf for a local-user setup with both pieces in place, see our vsftpd configuration file reference.

Bonus Gotcha: Uploaded Files Have Wrong Permissions 

After fixing the 550 itself, many readers hit a second permission issue immediately. Files upload successfully, but they land on the server with permissions like 0600 (owner-only) or some other mode that prevents a web server, backup script, or other service from reading them. The FTP client is not returning 550 at this point; the OS-level permissions are simply too restrictive. This is a follow-on from the original problem, not a 550 cause, but it gets conflated often enough to address here.

Two vsftpd directives interact to set the mode on uploaded files: file_open_mode and local_umask. Per the upstream manpage, file_open_mode defaults to 0666 and represents the maximum possible mode for a newly created file. local_umask is then applied as a mask that strips permission bits from that maximum. The compiled vsftpd default for local_umask is 077, which strips all group and other permissions and produces 0600 files. Distro packagers often override this in the shipped /etc/vsftpd.conf (Ubuntu’s package typically ships local_umask=022 to produce 0644 files instead), but you should never assume which default applies on your server. Check it directly:

Terminal
grep -E '^[[:space:]]*local_umask' /etc/vsftpd.conf

If the grep returns nothing, the directive is missing or commented and vsftpd will use its compiled default of 077. If you want world-readable files (typical for files that need to be served by a web server after upload), set the umask explicitly:

/etc/vsftpd.conf
local_umask=022

For anonymous uploads, the equivalent directive is anon_umask. The same mask logic applies. For a deeper look at why the default produces 0600 files and how the umask math works, see our vsftpd uploaded file permissions guide.

Verify the Fix 

After applying the matching fix and restarting vsftpd, reproduce the upload from a client and check each step:

  • Connect to the server. From the same machine, ftp localhost is enough to test; from a remote box, use lftp -u ftpuser ftp://your-server-ip.
  • Run cd files (or the path matching your setup) and confirm it succeeds.
  • Test write permission with mkdir test-upload. It should succeed without a 550.
  • On the FTP client machine, create a small test file outside the FTP session first: echo "test data" > /tmp/test.txt. Then back in the FTP session, upload it with the explicit remote filename: put /tmp/test.txt test.txt. The second argument is important because the command-line ftp client defaults the remote name to the full local path; without it, you would try to upload to /tmp/test.txt on the remote, which does not exist inside the chroot and fails with a 553 error.
  • From the server side, run ls -la /home/ftpuser/files/ and confirm the file is present with the expected owner, group, and mode.

If any of those steps still returns 550, return to the diagnostic table at the top of this guide and re-check the symptom against the matching cause. A common pattern is to fix one of the three real causes and then assume the work is done, while a second cause is also active. The log file pinned to your terminal makes the second cause visible quickly.

Next Steps 

Once writes work and file permissions look right, a few related improvements are worth considering. For any internet-facing FTP server, disable anonymous access entirely (set anonymous_enable=NO) so only authenticated users can upload, and enable TLS through the ssl_enable family of directives so credentials and file contents are not sent over plain FTP. Modern alternatives are increasingly preferred over plain FTP for new deployments; for many use cases SFTP (which is SSH-based and uses the existing system user accounts) is simpler to secure than vsftpd plus FTPS. See our SFTP configuration guide if you are evaluating that path.

Support DevAnswers
Written, tested and maintained by one developer. Your support keeps these guides accurate and ad-light.
Buy me a coffee

Comments

Leave a reply