I'm new here as u can see. I'm from Belgium and i apologize for my language if it's not correctly spelled.
Now, I'll scetch my situation.
For my end terms in school i have to set up a project with an ftp site in debian (vsftpd)
On that ftp there are multiple accounts. One of them is ACCOUNTNAME : help PASSWORD :helpFor example: I did a redirect (html) help.thecompany.com which came out on the ftp site where someone can enter this account and upload data to.
The purpose is to aid that person when they have problems... The webmaster pulles the stuff of the ftp site and everything is empty again.

A. When the account "help" logs in he can upload data for example "data.rar" --> OK, no problem it works
B. He reconnects --> OK, but data is stll visible and he cant upload (may NOT overwrite) the same data!

I need to put a script in crontab (checks ever 10 min or less?) which checks a certain file like vsftpd.log where in stands that "help" disconnected from the site and uploaded a file. Then these files need to be hidden and renamed to something else so the same person "help" can reconnect and upload the same file again if neccesary.

Let's recap:::
A. Check a certain file on disconnect and/or upload from "help"
B. Rename those files and hide them from ftp user ( OR move them to another dir? )

I would appreciate if someone can help me with this script.
Thx in advance

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum