LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-18-2008, 12:27 PM   #1
whiteghetto
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Rep: Reputation: 0
wput and anonymous FTP


I am attempting to upload a file from .25.156 to .25.130
I want to be able to over write the file repeatedly
I want this to be anonymous ftp.

I can upload from filezilla on the same network
I can upload from FTP on the same machine (.25.156)
I cannot overwrite an existing file in either example

I cannot upload via wput (I want to script the process)
I receive this error in wput
lab@lab-01:~$ wput xp.img ftp://anonymous:test@192.168.25.130/upload --10:23:36-- `xp.img'
=> ftp://anonymous:xxxxx@192.168.25.130:21/upload
Connecting to 192.168.25.130:21... connected!
Logging in as anonymous ... Logged in!
Send Failed. Skipping this file
FINISHED --10:23:36--
Transmission of 1 file failed.
Here is my vsftpd.conf
Code:
listen=YES
anonymous_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
local_root=/home/ftp
chown_username=root
ftpd_banner=Welcome to blah FTP service.
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
anon_root=/home/ftp
cmds_allowed=PASV,SIZE,CWD,PWD,MKD,RMD,STOR,DELE,TYPE,RETR,LIST,QUIT
any ideas or recomendations?
 
Old 08-19-2008, 02:43 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
You have chown_uploads=YES, so the ownership of an uploaded file is changed to root (chown_username=root). Guess what, a root-owned file cannot then be overwritten. It must be deleted first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 and wput mnotgninnep Debian 8 03-07-2006 05:06 PM
files uploaded to anonymous ftp not readable by anonymous TheOneAndOnlySM Linux - Software 2 11-04-2004 07:42 AM
anonymous ftp jgallas Linux - Newbie 10 08-14-2003 05:08 PM
Anonymous FTP? mikeshn Linux - General 4 06-08-2002 03:51 PM
Anonymous FTP Balitmoreboy Linux - Security 1 05-02-2001 06:19 AM


All times are GMT -5. The time now is 05:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration