Odd looping issue with NET::FTP and Proftpd


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Odd looping issue with NET::FTP and Proftpd
# 1  
Old 05-02-2012
Odd looping issue with NET::FTP and Proftpd

Hello,

I'm a UNIX SysAdmin at a large webhosting company and we have a vendor that provides a service which involves the ftp'ing of files from their servers to ours. They initiate FTP using a perl script with NET::FTP.

When they try to transfer files (and delete files over ftp), there is an issue that causes an infinite loop. And the ftp transfer/transaction never completes. This is the best I can describe this...

rm /
rm /dir
rm /dir/file.txt

Ftp start to do _something like_ this instead...
rm /
rm ./
rm ../
rm ../../
rm ../../../

and so on...

Does this ring a bell with anyone?

The issue was temporarily corrected with a patch to NET::FTP, but this fix is only temporary for reasons I will spare you. The vendor insists it's an issue with our version of proftpd. (1.3.4a).
I have looked at bug reports but can't seem to find one that would explain this particular problem. If I can find a reference to a bug with ftp then I can push the company to upgrade our version of proftpd.

Any help anyone can give is greatly appreciated.

Also their system is Ubuntu (latest version)
Ours is freebsd 6.4 & Linux RHEL5
This occurs on both platforms, but both have the same version of proftpd (1.3.4a)

Thank you!!
-Tania
# 2  
Old 05-02-2012
Without seeing the script in question I couldn't possibly tell what's happening.
# 3  
Old 05-02-2012
I understand. Since it is their proprietary code, I doubt they will share the source with us. But I will try to get what I can.

thank you!
# 4  
Old 05-02-2012
Hang on -- I just had a guess.

Maybe they weren't expecting . and .. to appear in directory listings, and weren't smart enough to ignore them when trying to do "recursive" things.

It's just a guess, mind you. But it could fit.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Config FTP on SCO Like proftpd

i have installed and working FTP Server With SCO 5.05. But i need solve problem related to config, like proftpd (i not have installed proftpd) the recomendation on client site is enable port 113 related to inetd. but i need solve it on server side, like proftpd.conf: DefaultRoot ~... (9 Replies)
Discussion started by: Arcanisgk
9 Replies

2. Solaris

RBAC with ftp/sftp using proftpd

I'm using proftpd to manage my ftp/sftp connections but would like to use RBAC to only allow ftp/sftp connections. Has anyone done this or can point me in the right direction? This is my first experience trying to use RBAC. Thanks in advance. (2 Replies)
Discussion started by: toor13
2 Replies

3. UNIX for Advanced & Expert Users

For looping on FTP

Hi, I have a requirement, where i have to check multiple folders(number of folder may vary) for a file and fetch the file one at a time and load it. On the ftp part, I fetch the file, Copy it to Archive folder and then remove the original file for flist in $folder_list; do print -p... (6 Replies)
Discussion started by: SubbuUX
6 Replies

4. Red Hat

named caching server odd lookup issue!

Hello All, I have resubmitted this issue I am having as the my last post was moved to programming as the issue appeared to be specific to java but on further investigation this is not the case. The issues also arises when running the host command and appears to be either a problem with the... (1 Reply)
Discussion started by: Paragon1970
1 Replies

5. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

6. Shell Programming and Scripting

Perl - Net::FTP issue

Wondering if anyone can help or advise on following issue. The below script should simply connect to a different server and retrieve certain files for me. use lib "/xxxxx/xxxxx/xxxxx/xxxx"; use Net::FTP; my $directory = "xxxxxxxx"; my $destinationDir = "xxxxxxxxx"; my $filePrefix =... (1 Reply)
Discussion started by: meevagh
1 Replies

7. UNIX for Dummies Questions & Answers

Odd Control Character issue ^A

Sorry to bug you, but my sed is failing me, I have a file auto generated from abinitio, it has a string of chars ending with a line break, and then it has added a ^A character, I can remove this is vi by using the following %s/^A//g (where ^A is ctrl v and control A), however when I try to sed... (1 Reply)
Discussion started by: badg3r
1 Replies

8. Shell Programming and Scripting

Looping in FTP session

Hi I am trying rename multiple files in a remote location by connecting through FTP. How do i do this? I get error as for is not FTP command. I looked the FAQ for scripting but it is doesnt relate to my post. Please help. Thanks ftp -in >Error.log <<! open $HOST user $User $Pwd for... (2 Replies)
Discussion started by: appsguy616
2 Replies

9. UNIX for Dummies Questions & Answers

odd ftp problem

we migrated from a system with HPUX B.11.0 to HPUX 11.23 i64 the new server is the same IP as the old server. the old server is renumbered to something else to avoid conflict. on the old system, we had a user named "ftp" . There is one person who daily will ftp files to the host using this... (15 Replies)
Discussion started by: LisaS
15 Replies

10. UNIX for Advanced & Expert Users

FTP - Sco Unix to ProFTPD Error

First off I did try google for help on this topic, didn't really find anything. When I try to ftp from my SCO Unix box (SCO_SV servername 3.2 5.0.5 i386) to a proFTPD server within my company I get this error Connected to 10.?.?.?. 220 ProFTPD Server ftp.hostname.com Name (10.?.?.?:root):... (1 Reply)
Discussion started by: whegra
1 Replies
Login or Register to Ask a Question