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:
- [Solved] FTP Error: 553 Could not create file
- Solution to “550 create directory operation failed” in FTP operation file
- Prompt when executing sh file in Linux: nohup: unable to run command “. / startup. Sh”: insufficient permissions
- How to Fix ”is not in the sudoers file“ in Linux
- Prompt 550 remove directory operation failed when FTP delete folder
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Inval
- Linux remote copy command and not a regular file solution
- Linux FTP error 226 transfer done (but failed to open directory)
- FTP use get command 550 failed to open file, but use the put command to solve the problem
- Alpine Linux executable file crash report error / lib / x86 not found_ 64 Linux GNU / libc.so solution
- Method of modifying file and folder permission by Chmod command in Linux
- Linux use ls to view the file color is all white solution, and Linux file color introduction
- FTP 550 Failed to change directory
- How to solve the problem of error 15: file not found when Linux starts
- Linux boot prompt “failed to initialize Hal!” solution
- [Linux] solution: SCP different server copy file prompt permission denied, please try again
- Under Linux, git cannot be used, prompt sign_and_send_pubkey: signing failed: agent refused operation
- Import / export. SQL file / gzip file for MySQL under Linux
- Idea startup prompt failed to create jvm: error code -1 jvm path solution
- Alibaba cloud builds FTP server 200 port command successful. Consider using PASV. 425 failed to establish connection