Why Does MetaDefender NetWall Show “unexpected response: 553–Could not create file” for FTP Transfers (vsftpd)?
Check Your Version:
This article applies to all NetWall versions.
Overview
In some deployments, the transfer log may show on RED side:
This indicates the destination FTP server rejected the upload.
Symptoms
Error field contains: “unexpected response: 553-Could not create file.”
Failures correlate with deep directory paths (many nested folders).
Uploading a single file to a top-level folder (e.g., /ftp_data/incoming) succeeds.
Uploading a folder or large repository (requiring many subfolder creations) fails.
Cause
The 553 response comes from the destination FTP server (vsftpd), not from NetWall. During folder uploads, the FTP client must create directories with MKD and then upload files with STOR. If the FTP account used by NetWall lacks permission to create or write within the target path, vsftpd returns 553 and the RED-side transfer fails.
Insufficient file system permissions for the FTP user (cannot MKD or STOR in target path).
Parent directory exists but user cannot create subfolders (group/other permissions too restrictive).
vsftpd write operations disabled or restricted for the logged-in user.
Incorrect, non-existent, or policy-restricted destination path.
Key insight: If single-file uploads to a shallow directory succeed but folder uploads fail, focus on MKD (directory creation) permissions and vsftpd write settings.
Resolution Steps
1) Verify directory ownership, group, and permissions
On the FTP server, inspect the target directories and the FTP user identity:
Requirements for creating subfolders and files under the target path:
The NetWall FTP user should be the owner of the directory, or belong to the owning group with write permission.
If permissions are 775, only owner and group can create subfolders; users treated as “other” cannot.
Example fixes:
2) Confirm vsftpd write settings
Open and review the vsftpd configuration:
Ensure write and directory creation are allowed, and verify default permissions for new items:
Apply changes:
3) Test with the same FTP credentials
From a test client, log in using the exact credentials configured on NetWall RED and validate directory creation and upload:
If manual testing fails or returns 553, the problem is confirmed on the FTP server side (permissions or configuration).
4) Re-run the transfer from NetWall
Trigger the same file or folder transfer again in NetWall.
Confirm Receive Status = success (BLUE) and Send Status = success (RED).
Verify the full directory structure and files exist on the FTP server.
Prevention and Best Practices
Use a dedicated FTP system user and group for NetWall transfers; align directory ownership to that account and group.
Apply directory setgid (g+s) on the top-level target to keep group ownership consistent in nested folders.
Document and routinely verify vsftpd write-related settings after OS or package updates.
Support:
If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.
MetaDefender