LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-07-2003, 05:26 AM   #1
BigP
LQ Newbie
 
Registered: Mar 2003
Posts: 9

Rep: Reputation: 0
Question vsftpd anonymous uploads


Hi.

Recently installed RH 8.0 to run an FTP Data Repository on my local network.

I chose the server install, set the firewall to high, and installed the rpm's for anonftp and vsftpd.

I have a problem uploading files using the anonymous account.

Here is my vsftpd.conf

anonymous_enable=YES
local_enable=NO
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=NO
dirmessage_enable=NO
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ftpd_banner=Welcome.
pam_service_name=vsftpd

I have created a directory in /var/ftp/pub called upload and ran the command "chmod 755 /var/ftp/pub/upload"

When I try to upload to the directory pub or upload I get a 553 Could not create file error.

I am guessing I havent set the access controls right or the .conf is wrong in some way.

All help appreciated !
 
Old 03-07-2003, 08:08 AM   #2
loke137
Member
 
Registered: Feb 2003
Location: Brasil
Distribution: Debian Etch
Posts: 147

Rep: Reputation: 15
I have just tested, chmod 755 <dir> does not give users the permission to write to that directory!! I think you should do chmod 777 <dir> to do that
 
Old 03-07-2003, 10:37 AM   #3
BigP
LQ Newbie
 
Registered: Mar 2003
Posts: 9

Original Poster
Rep: Reputation: 0
loke137...thanks very much.

That was the problem. I was using 744 as recommended by RedHat themselves not 755, but you have id'd the problem.

Check this out... http://www.redhat.com/docs/manuals/l...erver-ftp.html

Thanks again
 
Old 03-07-2003, 11:03 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Theres no need to give anonymous users executable rights to the files on your ftp server. Would you want them to be able to execute programs on your server? I would go with:

chmod 666
 
  


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, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
vsftpd anon uploads das9570 Linux - Networking 0 01-16-2005 09:21 PM
VSFTPD Uploads das9570 Linux - Software 0 01-16-2005 03:30 PM
vsftpd config- permissions, allowing uploads lynchpin9 Linux - Networking 1 10-20-2003 01:13 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 03:00 PM.

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