[Solved] FTP 553 Could not create file.

Hi,
We have one server - "ftpserver", just setup with RedHat 5.7.

ftpserver is able to get & put from another server, however, other server are unable to get or put in the ftpserver.

# su - ftpuser
$ pwd
/home/ftpuser
$ cd ..
$ ls -ltr
drwxrwxrwx 3 ftpuser ftpuser 4096 Sep 10 09:19 ftpuser
# more ftpusers  [ & also user_list]
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

From another server,

Connected to ftpserver.
220 (vsFTPd 2.0.5)
User (ftpserver:(none)): ftpuser
---> USER ftpuser
331 Please specify the password.
Password:
---> PASS ftpuser
230 Login successful.
ftp> put test_put.txt
---> PORT 172,16,101,120,216,45
200 PORT command successful. Consider using PASV.
---> STOR test_put.txt
553 Could not create file.

---------- Post updated at 11:05 AM ---------- Previous update was at 10:56 AM ----------

Found the solutions.
By running # setsebool -P ftp_home_dir 1, it is running correctly.

---> STOR test_put.txt
150 Ok to send data.
226 File receive OK.

Hope this will be useful for others having the same problem.

Thanks.

1 Like