Hello,
I'm having difficulties with uploading files to a CentOS-server with vsftpd.
I have the exact same configuration on a Fedora10 and there I have no problems...
Fedora 10 :
[root@asterisk etc]# ls -l | grep ast
drwxr-xr-x 4 asterisk asterisk 4096 2010-09-15 12:35 asterisk
CentOS :
[root@asterisk16 etc]# ls -l | grep ast
drwxr-xr-x 2 asterisk asterisk 4096 Sep 16 11:27 asterisk
vsftpd.conf on both servers :
Code:
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
user "asterisk" :
Fedora 10 :
[root@asterisk /]# cat /etc/passwd | grep aster
asterisk:x:500:500:asterisk:/etc/asterisk:/bin/bash
CentOS :
[root@asterisk16 etc]# cat /etc/passwd | grep aster
asterisk:x:500:500::/etc/asterisk/:/bin/bash
Feedback from ftp-program :
Quote:
CWD /
250 Directory successfully changed.
CWD /
250 Directory successfully changed.
PORT 192,168,1,101,140,105
200 PORT command successful. Consider using PASV.
STOR asterisk.conf.new
553 Could not create file.
PORT 192,168,1,101,233,152
200 PORT command successful. Consider using PASV.
STOR asterisk.conf.new
553 Could not create file.
PORT 192,168,1,101,181,221
200 PORT command successful. Consider using PASV.
STOR asterisk.conf.new
553 Could not create file.
DELE asterisk.conf.new
550 Delete operation failed.
QUIT
221 Goodbye.
|