Prompt 553 Could not create file, set the owner and permission of this directory, or report this error, then check carefully on the Internet, the problem is solved as follows:
Command:
Ftp> Put back_log. TXT/home/user001 /
553 Could not create file
ftp> Put back_log. TXT/home/user001/back_log. TXT
This command can be printed out using the echo command.
Error message
The current directory is /home
Ftp> ! ls -l
…
-RWXR-XR-x 1 root root 146 Aug 16 03:30 HOSTS
Rw – r – r – 1 root root 46 Aug 16 02:09 host. TXT
Rw – r – r – 1 root root 51 Aug 15 07:14 logins. TXT
…
Ftp> put host.txt
Local: host. TXT remote: host. TXT
227 ‘Entering into Passive Mode (127,0,0,1,62,184)
150 Ok to send data.
226 the File receive OK.
46 Bytes Sent in 0.014 seconds (3.2 Kbytes/s)
Ftp> put hosts
Local: hosts remote hosts
227 ‘Entering into Passive Mode (127,0,0,1,174,59)
150 Ok to send data.
226 the File receive OK.
146 Bytes Sent in 0.046 seconds (3.1 Kbytes/s)
Ftp> put /home/hosts
Local:/home/hosts remote:/home/hosts
227 ‘Entering into Passive Mode (127,0,0,1,232,15)
553 Could not create File.
Ftp>
Problem: ftp> Put the/home/hosts and ftp> Put hosts (the current directory is /home
) The parameters to be executed should be the same. Why can’t the former be uploaded?
When we come across this kind of problem, we should first analyze the reason
Consider whether selinux is a reason to try disabling SELinux
2. Maybe FTP folder does not have write permission, confirm the directory permission
3. Is there write_enable=YES in the configuration file
Read More:
- FTP use get command 550 failed to open file, but use the put command to solve the problem
- Linux remote copy command and not a regular file solution
- FTP 550 Failed to change directory
- ansible Q&A: Failed to connect to the host via ssh: ssh_exchange_identification and Authentication or per
- Alibaba cloud builds FTP server 200 port command successful. Consider using PASV. 425 failed to establish connection
- Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server
- A solution to the refusal of rdesktop connection to windows host
- SSH appears warning: remote host identification has changed!
- pathspec ‘master’ did not match any files known to git
- Command line access to passive mode FTP server failed, 425 failed to establish connection
- Resolve – bash: fork: Retail: resource temporarily unavailable error
- Mac realizes file interaction (upload and download) between terminal and server
- Rsync: failed to exec SSH: no such error in remote Rsync
- Error: invalid permission for adding an object to repository database
- FileZilla 425 Can’t open data connection
- Windows FTP Error 425: Unable to build data connection
- Someone is doing something abnormal
- MySQL data backup scheme (compatible with local and remote)
- How to solve the SNMP error of cacti
- Solution to MySQL Error 1130 problem