Solved

avoid vsftpd changing modification time in uploads

Posted on 2010-11-28
4
1,994 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
  • 2
4 Comments
 
LVL 29

Expert Comment

by:Michael W
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux server cannot access samba share 12 91
Install MySQL 5.6 and PHP on Centos Linux 6 101
My bash alias isn't executing 5 47
AWS CLI - Issue with name display 2 50
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now