LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   CentOS 5 + vsftpd + upload = error (https://www.linuxquestions.org/questions/linux-networking-3/centos-5-vsftpd-upload-%3D-error-594148/)

diezzler 10-24-2007 05:23 AM

CentOS 5 + vsftpd + upload = error
 
I must admit I'm fairly new to linux, but after reading lots of stuff online for the last few days, I still haven't been able to solve my problem and I'm asking for help.
I'm having a problem with uploading via ftp anonymously and/or with a user using CentOS 5.

here is what I have...


##vsftpd.conf##
anonymous_enable=YES
write_enable=YES
local_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
dirmessage_enable=YES
dirlist_enable=YES
no_anon_password=YES
file_open_mode=0777
guest_enable=YES
listen=yes
listen_port=21
pam_service_name=vsftpd





In the root, I have made two folders upload1 and upload2.
I have set upload with chown to ftp user and ftp group
and set upload 2 with chown to user john, and group ftp.

I have chmod both folders with 777.

When I log in as john, or anonymously, I can see and download files. But when I try to upload I get an upload not allowed message.
or with winxp:
an error occured copying a file to the Ftp Server. Make sure you have permission to put files on the server. Details:
200 switching to Binary mode
227 Entering passive mode (192,168,1,109,186,182)
553 Could not create file.




..help?

diezzler 10-24-2007 07:33 PM

can anyone help?

fleece 01-18-2008 10:47 AM

I'm experiencing the same frustrating problem...

I'm on brand new install of CentOS 5.1 with vsftpd v2.0.5 r10.el5

Here's my stuff...

/etc/vsftpd/vsftpd.conf:

Code:

write_enable=YES
local_umask=022
anonymous_enable=YES
anon_umask=666
anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=NO
anon_world_readable_only=NO
connect_from_port_20=YES
pam_service_name=vsftpd
listen=YES
no_anon_password=YES
ascii_download_enable=YES
ascii_upload_enable=YES


Here's my directory tree...

/var
Code:

total 164
drwxr-xr-x  2 root root 4096 Jan 16 15:20 account
drwxr-xr-x 11 root root 4096 Jan 17 14:44 cache
drwxr-xr-x  2 root root 4096 Nov 11 22:07 crash
drwxr-xr-x  3 root root 4096 Jan 16 15:20 db
drwxr-xr-x  3 root root 4096 Jan 16 15:20 empty
drwxr-xr-x  4 root root 4096 Jan 18 06:24 ftp
drwxr-xr-x  2 root root 4096 Mar 29  2007 games
drwxr-xr-x 20 root root 4096 Jan 17 14:44 lib
drwxr-xr-x  2 root root 4096 Mar 29  2007 local
drwxrwxr-x  5 root lock 4096 Jan 18 04:02 lock
drwxr-xr-x 12 root root 4096 Jan 17 17:03 log
lrwxrwxrwx  1 root root  10 Jan 16 15:17 mail -> spool/mail
drwxr-xr-x  2 root root 4096 Mar 29  2007 nis
drwxr-xr-x  2 root root 4096 Mar 29  2007 opt
drwxr-xr-x  2 root root 4096 Mar 29  2007 preserve
drwxr-xr-x  2 root root 4096 May 19  2007 racoon
drwxr-xr-x 16 root root 4096 Jan 18 05:56 run
drwxr-xr-x 12 root root 4096 Jan 17 14:14 spool
drwxrwxrwt  2 root root 4096 Jan 17 17:35 tmp
drwxr-xr-x  6 root root 4096 Jan 16 15:20 www
drwxr-xr-x  3 root root 4096 Jan 16 15:20 yp

/var/ftp
Code:

total 24
drwxrwxrwx 2 ftp  ftp  4096 Jan 18 06:25 dropbox
drwxr-xr-x 2 root root 4096 Mar 14  2007 pub

Here's what the processes look like when the ftp client is connected after the upload attempt.

Code:

[root]# ps -ef | grep ftp
root    12346    1  0 06:40 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
nobody  12355 12346  0 06:41 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
ftp      12357 12355  0 06:41 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root    12367 11715  0 06:41 pts/0    00:00:00 grep ftp


I'm trying to anonymously upload a new file to the folder "dropbox" and getting FTP 553 errors from both Linux and Windows IE ftp clients. I can download fine.

fleece 01-18-2008 10:59 AM

:o Fixed my problem after making the post above.

Found answer here...
http://forums.fedoraforum.org/showthread.php?p=945913

SELinux was interfering. Disabling SELinux in /etc/selinux/config fixed it.


All times are GMT -5. The time now is 01:47 AM.