?
Solved

avoid vsftpd changing modification time in uploads

Posted on 2010-11-28
4
Medium Priority
?
2,178 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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

771 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