[Solved] FTP Error: 553 Could not create file

FTP error 553 could not create file

Problem Description:
an error occurs when uploading a file using the FTP put command 553 could not create file

Solution:
1. View the local_root configuration information in the current configuration file.
example:

vim /etc/vsftpd/vsftpd.conf
local_root=/ftpFile

2. Check if there is a directory under local_rootfor the user who is currently logged in to ftp.
example:

[root@master ~]# cd /ftpFile/
[root@master ftpFile]# ll
taotally 0
drwxr-xr-x 2 admin admin 17 Aug   4 23:49 ftpFile

/ftpFile The user of the ftpFile file in the folder is admin, the username used to log in to ftp

3. Note that when using the put command, use the relative path instead of the absolute path, or use the command CD to the FTP file directory.
example:

[root@node01 ~]# ftp 192.168.169.141
Connected to 192.168.169.141 (192.168.169.141).
220 (vsFTPd 3.0.2)
Name (192.168.169.141:root): admin		# use admin to login
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls		# You can use ls to see what files are in the current admin user's directory
227 Entering Passive Mode (192,168,169,141,87,162).
150 Here comes the directory listing.
drwxr-xr-x    2 1006     1006           17 Aug 04 15:49 ftpFile
226 Directory send OK.
ftp> put /home/diffUserFile.txt ftpFile/1111	# When using put to upload files, you can use absolute paths locally, and relative paths on the ftp side, but using absolute paths will report an error
local: /home/diffUserFile.txt remote: ftpFile/1111
227 Entering Passive Mode (192,168,169,141,128,45).
150 Ok to send data.
226 Transfer complete.
24 bytes sent in 9.1e-05 secs (263.74 Kbytes/sec)
ftp> 

or

[root@node01 ~]# ftp 192.168.169.141
Connected to 192.168.169.141 (192.168.169.141).
220 (vsFTPd 3.0.2)
Name (192.168.169.141:root): admin		# use admin to login
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /ftpFile/		# Use the cd command to enter the ftp specified directory
250 Directory successfully changed.
ftp> lcd /home		# Use lcd to go to the local file path
Local directory now /home
ftp> put diffUserFile.txt 2222		# This way it can all be done with relative paths
local: diffUserFile.txt remote: 2222
227 Entering Passive Mode (192,168,169,141,202,165).
150 Ok to send data.
226 Transfer complete.
24 bytes sent in 7.6e-05 secs (315.79 Kbytes/sec)
ftp> 

Read More: