Operating System - HP-UX
1833046 Members
2584 Online
110049 Solutions
New Discussion

Limit number of times a file can be ftp'd

 
SOLVED
Go to solution
Youlette Etienne_2
Regular Advisor

Limit number of times a file can be ftp'd

We have an ftp server running wu-ftpd. We want to restrict ftp logins to be able to ftp a file only once, even if they reestablish an ftp connection.

Can this be configured within wu-ftp or does this restriction have to be configured at the firewall level? I was unable to find information on configuring this within wu-ftp.

Thanks

If at first you don't succeed, change the rules!
3 REPLIES 3
Stefan Farrelly
Honored Contributor
Solution

Re: Limit number of times a file can be ftp'd

The only way I can think of doing this is to have full ftp logging (for ftpd daemon) in /etc/inetd.conf on the HP server, which then writes full details to syslog.log - such as userid, file they ftp'd, successful or not, and then you have to write a script/monitoring program which constantly checks the syslog and once a file is successfully ftp'd change the permissions on it or delete it so stop any more ftp's of it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Christopher McCray_1
Honored Contributor

Re: Limit number of times a file can be ftp'd

Hello,

There is no setting in wu-ftp for a 1-time only transfer. You can only deny access to files with the noretrieve option.

Your solution unfortunately lies elsewhere.

Chris
It wasn't me!!!!
Youlette Etienne_2
Regular Advisor

Re: Limit number of times a file can be ftp'd

Thanks Stefan. I saw a similar script in one of the forum answers. I will use this.
If at first you don't succeed, change the rules!