LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 04-24-2007, 01:50 PM   #1
Sagebrush Gardener
LQ Newbie
 
Registered: Mar 2007
Posts: 29
Thanked: 0
FTP mystery - uploaded file disappears!


[Log in to get rid of this advertisement]
This one has got me stumped. I use the ProFTPD FTP server. A user reported that a file he uploaded had disappeared from the server about 85 minutes later when someone else tried to download it. I checked xferlog very carefully for evidence that the file had either been deleted or renamed but found nothing.

The directory in question is accessible only through FTP. I am the only shell user who was logged in during this time and I didn't do anything to cause this. There is a cron job that deletes files from this directory that are older than 14 days but this only runs once a day, it did not run during the time this happened, and in any case should not have deleted a freshly-uploaded file.

Here are the relevant log entries from xferlog:

pec_top.tar.gz was first uploaded successfully to the ftp /support directory by user caeowner connecting from somehost.somewhere.com:

"somehost.somewhere.com","1.2.3.4","UNKNOWN","caeowner","[20/Apr/2007:18:50:49 +0000]",
"STOR pec_top.tar.gz","226","/data/home2/ftp/support/pec_top.tar.gz","17124440","683.094"

85 minutes later, the anonymous user tries unsuccessfully to download pec_top.tar.gz:
"4.3.2.1","4.3.2.1","UNKNOWN","ftp","[20/Apr/2007:20:15:28 +0000]","CWD support","250","-","-","-"
"4.3.2.1","4.3.2.1","UNKNOWN","ftp","[20/Apr/2007:20:15:43 +0000]","RETR pec_top.tar.gz","550","-","-","-"
"4.3.2.1","4.3.2.1","UNKNOWN","ftp","[20/Apr/2007:20:16:03 +0000]","RETR pec_top.tar.gz","550","-","-","-"

60 minutes later, caeowner uploads it again:
"somehost.somewhere.com","1.2.3.4","UNKNOWN","caeowner","[20/Apr/2007:21:16:11 +0000]",
"STOR pec_top.tar.gz","226","/data/home2/ftp/support/pec_top.tar.gz","17124440","672.054"

20 minutes later, the anonymous user downloads it successfully:
"4.3.2.1","4.3.2.1","UNKNOWN","ftp","[20/Apr/2007:21:35:10 +0000]","CWD support","250","-","-","-"
"4.3.2.1","4.3.2.1","UNKNOWN","ftp","[20/Apr/2007:21:35:39 +0000]",
"RETR pec_top.tar.gz","226","/data/home2/ftp/support/pec_top.tar.gz","17124440","20.497"

I don't know what happened between the first upload and the first (unsuccessful) download attempt. I would have expected to see the file deleted or renamed somewhere in between or someone trying to download it from the wrong directory, but I don't see anything like that in the log file. It's a mystery!

Does anyone have a clue?
Sagebrush Gardener is offline     Reply With Quote
Old 04-24-2007, 03:27 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: Atlanta, GA
Distribution: Ubuntu
Posts: 8,347
Thanked: 13
Can the FTP user set the timestamp on the file? If the timestamp is remotely set, it may appear as <= 14 days old.
Matir is offline     Reply With Quote
Old 04-24-2007, 04:57 PM   #3
Sagebrush Gardener
LQ Newbie
 
Registered: Mar 2007
Posts: 29
Thanked: 0

Original Poster
Quote:
Originally Posted by Matir
Can the FTP user set the timestamp on the file? If the timestamp is remotely set, it may appear as <= 14 days old.
An interesting idea, but I don't think this can be done, the logs don't show any evidence that it was done, the user wouldn't have had a reason to do this if he could, and I don't think the cron job was active during the time period in question.
Sagebrush Gardener is offline     Reply With Quote
Old 02-26-2009, 10:22 AM   #4
rlb3778
LQ Newbie
 
Registered: Feb 2009
Posts: 1
Thanked: 0
I know this an older post but we're seeing this same issue and your post is the newest I could find and was curious, if by some chance you're still monitoring this thread, if you were ever able to figure out what was happening and where the files were mysteriously disappearing to.

Thanks!
rlb3778 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
wsftpd and uploaded file permissions Crashputer Linux - Software 1 08-01-2005 06:10 AM
How to keep the original time of files uploaded to FTP server wondial Linux - Software 1 10-26-2004 11:12 PM
uploaded file on vsftpd has wrong file attributes rune.kg Linux - Newbie 2 03-06-2004 10:23 AM
File uploaded via FTP have bad permissions breakerfall Linux - Networking 7 12-28-2003 05:29 PM
Proftp-- I can upload now but I can't see the file I just uploaded HELP PLEASE funnyusa Linux - Newbie 4 06-22-2003 04:00 PM


All times are GMT -5. The time now is 05:33 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration