Solved

avoid vsftpd changing modification time in uploads

Posted on 2010-11-28
4
2,117 Views
Last Modified: 2013-11-22
Hi
I'm running a vsftpd on ubuntu server. All users can upload files fine using their username.
But, every time a new upload comes, (even without change any files), the mtime of all files on the vsftpd side is updated to the actual time. How can I avoid vsftpd to change the time? Or set the same time that remotefiles?
Is it possible?
0
Comment
Question by:sminfo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 29

Expert Comment

by:Michael Worsham
ID: 34227661
No, this is not possible. The time is obtained from the server-side the client is connecting into and written to the file. VSFTPD and other FTP daemons were coded this way to prevent a client from uploading older data to the server to overwrite newer data files for possible rootkits and other types of server-side abuse.

Example of abuse: If the VSFTPD did allow for keeping the older 'date' of the uploaded file, server-side applications could be at risk (i.e. allowing a modified (rootkit-based) version of '/usr/bin/passwd' to be uploaded while still showing the older date release of what was originally on the server).

0
 

Accepted Solution

by:
sminfo earned 0 total points
ID: 34228387
well... after some google's search.. I found that if you use ncftpput (ncftpd) as client with -y option it preserve the timestamp, so when you upload files the files are copied with the same time as in the source server.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 34228736
Yep,

and that's due to the setting "mdtm_write  YES" in vsftpd.conf, which is the default.

wmp
0
 

Author Closing Comment

by:sminfo
ID: 34276708
Issue solved!
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question