LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2007, 05:23 AM   #1
diezzler
LQ Newbie
 
Registered: Oct 2007
Location: Washington, DC
Distribution: CentOS 5
Posts: 2

Rep: Reputation: 0
Unhappy 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?
 
Old 10-24-2007, 07:33 PM   #2
diezzler
LQ Newbie
 
Registered: Oct 2007
Location: Washington, DC
Distribution: CentOS 5
Posts: 2

Original Poster
Rep: Reputation: 0
can anyone help?
 
Old 01-18-2008, 10:47 AM   #3
fleece
LQ Newbie
 
Registered: Dec 2004
Location: Atlanta, Georgia USA
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Unhappy

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.
 
Old 01-18-2008, 10:59 AM   #4
fleece
LQ Newbie
 
Registered: Dec 2004
Location: Atlanta, Georgia USA
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Smile

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd very slow upload backroger Linux - Enterprise 0 09-18-2006 07:30 PM
VSFTPd upload permissions critical Linux - Software 3 08-03-2005 02:03 AM
VSFTPD - can download but cant upload. Dirt Linux - Software 1 09-06-2003 08:42 PM
vsftpd 550 upload error rusium Linux - Networking 1 05-20-2003 01:30 PM
Anonymous upload with vsftpd 1.1.0 Jesus0190 Linux - Software 0 01-04-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration