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_root
for 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:
- FTP prompt in Linux — 553 could not create file (absolutely useful)
- Solution to “550 create directory operation failed” in FTP operation file
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Inval
- FTP use get command 550 failed to open file, but use the put command to solve the problem
- FTP 550 Failed to change directory
- Alibaba cloud builds FTP server 200 port command successful. Consider using PASV. 425 failed to establish connection
- Fileexistserror: [winerror 183] cannot create a file when it already exists. File rename code attached
- Windows FTP Error 425: Unable to build data connection
- Eclipse create servlet file error
- [Four Solutions] FTP Login Error: 530 Login incorrect.Login failed”
- -bash: cannot create temp file for here-document: No space left on device
- Fileexistserror: [winerror 183] cannot create a file when it already exists. : ‘D:/tjn/tra
- Prompt 550 remove directory operation failed when FTP delete folder
- curl: (25) Failed FTP upload: 550 Solution
- Command line access to passive mode FTP server failed, 425 failed to establish connection
- Can’t create PDF file with font Calibri bold error resolution
- Linux FTP error 226 transfer done (but failed to open directory)
- ln: failed to create symbolic link ‘/usr/bin/pip’: File exists
- Create xxx.vue file with vscode, add comments and report error
- maven_ Unable to create servlet file under Java Web project