LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2006, 05:21 PM   #1
randaddyz
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Unhappy Files corrupt on FTP Server


I have inherited a FTP server running Linux 2.4.22 (tty1). I am quite new to Linux. My question is that this server for the last 5 years has been running non stop without a hiccup but... Someone uploaded a file to it that has locked all directories. I am trying to go in and delete the file but I cannot find it. When try the find command and type the name it just returns to the next line without anything. Is there some search command that I can search that will return anything by that file name or a command that will search the whole drive and delete any file that matches the criteria?

I really would like to get this running again.

Thanks in advance!!!!
 
Old 07-14-2006, 06:56 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hello and welcome to LQ.

Kernel 2.4.22 was released in 2003. Doesn't spell much good wrt keeping updated. If you have any doubt more things could be wrong (breach of security) I suggest saving listings of open files (lsof -n), processes (ps axwwwe), network connections (netstat -an) and users (w; who; last) and then pull plug on the network. If you can't do that (box in remote location) then you could block inbound traffic at the router it's behind or raise the firewall to only allow traffic to/from your management IP or shut down daemons you don't need for accessing the box (you only need ssh).


My question is that this server for the last 5 years has been running non stop without a hiccup but... Someone uploaded a file to it that has locked all directories.
What exactly do you mean by "locked"? Not being able to list or write files?
Does it return an error message when you try to list or write?
What error messages does the FTP service log show?
What error messages does syslog show?


I am trying to go in and delete the file but I cannot find it.
When did the upload occur (see FTP daemon logfile) or when did someone first notice?
If you have an aproximate date you could try "find / -ctime n" where n is the amount of days ago.


When try the find command and type the name it just returns to the next line without anything.
So you know the name? What's the file called?

Last edited by unSpawn; 07-18-2006 at 07:09 PM. Reason: //Have keybd, can't type.
 
Old 07-18-2006, 06:17 PM   #3
randaddyz
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for replying.

It was one of our users that tried to back up his pst file from outlook. The file was 1.8GB. When I say it locked I mean that when we try to access any files or folders we the message that unaccessable. So I can see the files but cannot list them. I have to disconnect the client. The file is called CMPST.

i hope this helps!!!

Randaddy

Quote:
Originally Posted by unSpawn
Hello and welcome to LQ.

Kernel 2.4.22 was released in 2003. Doesn't spell much good wrt keeping updated. If you have any doubt more things could be wrong (breach of security) I suggest saving listings of open files (lsof -n), processes (ps axwwwe), network connections (netstat -an) and users (w; who; last) and then pull plug on the network. If you can't do that (box in remote location) then you could block inbound traffic at the router it's behind or raise the firewall to only allow traffic to/from your management IP or shut down daemons you don't need for accessing the box (you only need ssh).


My question is that this server for the last 5 years has been running non stop without a hiccup but... Someone uploaded a file to it that has locked all directories.
What exactly do you mean by "locked"? Not being able to list or write files?
Does it return an error message when you try to list or write?
What error messages does the FTP service log show?
What error messages does syslog show?


[i]I am trying to go in and delete the file but I cannot find it.[i]
When did the upload occur (see FTP daemon logfile) or when did someone first notice?
If you have an aproximate date you could try "find / -ctime n" where n is the amount of days ago.


When try the find command and type the name it just returns to the next line without anything.
So you know the name? What's the file called?
 
Old 07-18-2006, 07:19 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Log in and run lsof -n | grep -i for the filename to see if the FTP daemon or any other app has got the file opened. Then stop or kill that app and then try to delete the file. If that doesn't work reboot the box with a Live CD and then delete the file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup files to ftp server KristianThrane Linux - Software 1 05-13-2006 05:01 PM
how to put files on the ftp server bry21 Linux - Networking 5 01-25-2006 12:11 AM
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
Video files corrupt over ftp ixus_123 Linux - General 5 01-19-2005 05:14 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration