Issue : Receiving "550 Permission denied" while uploading file on vsftpd server, no issue to download file.
Kernel : 2.6.9-55.ELsmp
OS: RHEL 4
vsftpd : vsftpd-2.0.1-5.el4.5, vsftpd-2.0.1-9.el4.i386.rpm
Solution :
enabling "chown_uploads=YES" caused problem. Disabled it like :
#chown_uploads=YES
Also enabled below :
anonymous_enable=YES
Troubleshooting :
from client : following steps had been performed :
ftp> put testfile.txt
local: testfile.txt remote: testfile.txt
---> TYPE I
200 Switching to Binary mode.
ftp: setsockopt (ignored): Permission denied
---> PASV
227 Entering Passive Mode (10,57,71,14,181,149)
---> STOR testfile.txt
550 Permission denied.
ftp> exit
from server, we saw following messages in /var/log/vsftpd.log
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP command: Client "10.57.71.126", "PASV"
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP response: Client "10.57.71.126", "227 Entering Passive Mode (10,57,71,14,24,213)"
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP command: Client "10.57.71.126", "STOR testfile.txt"
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP response: Client "10.57.71.126", "550 Permission denied."
Kernel : 2.6.9-55.ELsmp
OS: RHEL 4
vsftpd : vsftpd-2.0.1-5.el4.5, vsftpd-2.0.1-9.el4.i386.rpm
Solution :
enabling "chown_uploads=YES" caused problem. Disabled it like :
#chown_uploads=YES
Also enabled below :
anonymous_enable=YES
Troubleshooting :
from client : following steps had been performed :
ftp> put testfile.txt
local: testfile.txt remote: testfile.txt
---> TYPE I
200 Switching to Binary mode.
ftp: setsockopt (ignored): Permission denied
---> PASV
227 Entering Passive Mode (10,57,71,14,181,149)
---> STOR testfile.txt
550 Permission denied.
ftp> exit
from server, we saw following messages in /var/log/vsftpd.log
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP command: Client "10.57.71.126", "PASV"
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP response: Client "10.57.71.126", "227 Entering Passive Mode (10,57,71,14,24,213)"
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP command: Client "10.57.71.126", "STOR testfile.txt"
Thu Jan 22 02:24:17 2015 [pid 9478] [test122] FTP response: Client "10.57.71.126", "550 Permission denied."
successful upload log shows below messages [in /var/log/xferlog]:
Thu Jan 22 04:20:26 2015 1 10.57.71.126 12 /home/test122/upload/testfile.txt b _ i r test122 ftp 0 * c
Thu Jan 22 04:21:01 2015 1 10.57.71.126 12 /home/test122/upload/testfile.txt b _ o r test122 ftp 0 * c
No comments:
Post a Comment