Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

samba file modifed dates

Status
Not open for further replies.

eggstain

IS-IT--Management
Aug 14, 2006
1
US
I am looking to see if there is an option in the smb.conf to fix my problem. I have samba sharing a folder in our windows network for our employees to dump files that they want to be available on the ftp server. We wrote a quick cronjob to remove the files they put there after say 24 hours. The problem is that when they drag the files from there windows desktop samba uses the last modified date. So if the user doesn't modify the file right before adding it to the ftp server it gets deleted by the script. I am looking for samba to change the date to when they drop it.
 
If by chance your cronjob use the find command then play with the -ctime primary instead of -mtime

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top