Disappearing files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Disappearing files
# 1  
Old 09-01-2008
Disappearing files

Suse 10.3
ispconfig
Using as a web server, mail server.
I'm the only user.
These files:

/var/log/httpd/ispconfig_access_log_2008_08_28
/var/log/httpd/ispconfig_access_log_2008_08_29

vanished without a trace.
I still have older and newer files, but not these.
I have not deleted anything since looking at these files a couple of days ago.
There was some suspicious activity in these logs, someone was trying to use me as a proxy, I didn't install squid, but I see a squid user in the user accounts. Someone else was trying an sql injection attack, and there was also an F bot attack.
After seeing all this, I installed and ran chkrootkit, fail2ban and snort.
Is it possible one of these programs deleted the files?
# 2  
Old 09-01-2008
These files could be deleted by a cleaning script in the crontab or logrotation.

Squid may be installed during the OS installation.
# 3  
Old 09-01-2008
If I were already in your box, I might be tempted to remove log files which show when and how I broke in. Not to cause a panic, but do look around a bit ...
# 4  
Old 09-01-2008
Thanks, I'll look into that.

Quote:
Originally Posted by OSLEVEL
These files could be deleted by a cleaning script in the crontab or logrotation.

Squid may be installed during the OS installation.
# 5  
Old 09-02-2008
I ran chkrootkit and the only things that showed up was a lot of php stuff from ispconfig, and this:

"Searching for anomalies in shell history files... Warning: `' is linked to another file"
and this:

"Checking `chkutmp'... The tty of the following user process(es) were not found in /var/run/utmp !
! RUID PID TTY CMD
! root 2286 tty7 /usr/bin/Xorg -br -nolisten tcp :0 vt7 -auth /var/lib/xdm/authdir/authfiles/A:0-gLBli6"

I looked at my history for root and didn't see anything strange.
I also looked at a lot of logs and didn't see anything other than what I saw in the logs that dissapeared.
I looked at my user list and didn't see anything strange.

Do you have any suggestions as to where I might look to find something or someone that shouldn't be there?


Quote:
Originally Posted by era
If I were already in your box, I might be tempted to remove log files which show when and how I broke in. Not to cause a panic, but do look around a bit ...
# 6  
Old 09-02-2008
Ok, mystery solved.
Ispconfig uses those log files as temporary files and then moves the contents to the web directory of the virtual domain and appends the contents to another log file every so often. I guess there must be a bug because there are other older files in there that didn't get processed and that's part of what was confusing me.
So, I still have all my logs.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Automate splitting of files , scp files as each split completes and combine files on target server

i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies

2. UNIX and Linux Applications

Groups are disappearing on opening of new konsole/terminal

Hi when I open a new KDE/terminal all my project groups are disappearing. help is much appreciated. Thanks Sujay (2 Replies)
Discussion started by: sujaybatni
2 Replies

3. Shell Programming and Scripting

[Solved] Disappearing backslash

Let's say I have a text file called process.out that contains: cn=long\, ann,cn=users cn=doe\, john,cn=users I need to have the following appended in the beginning ldapdelete -h $OIDHOST So the final output looks like: ldapdelete -h $OIDHOST "cn=long\, ann,cn=users" ldapdelete -h... (4 Replies)
Discussion started by: exm
4 Replies

4. Shell Programming and Scripting

Replace semicolons with tabulators, new lines are disappearing

Hi Gurus! Example file: 1;AAA;BBB 2;CCC;DDD We want to replace semicolons to tabulators. Like this: 1 AAA BBB 2 CCC DDD We have tried these codes. With PERL: #!/bin/bash for i in `find /folder1/ -name "*.CSV"` do bi="`basename $i awk -F"." {'print $1'}`" cat... (2 Replies)
Discussion started by: JanneN
2 Replies

5. Solaris

Crontab latest entry disappearing. plz help

The latest crontab entry is disappearing time and again on acceptance and production environment. the same entry gets deleted. any pointers to what might be causing this issue? (6 Replies)
Discussion started by: bluenavi
6 Replies

6. Solaris

Crontab latest entry disappearing

The latest crontab entry is disappearing time and again on acceptance and production environment. the same entry gets deleted. any pointers to what might be causing this issue? (1 Reply)
Discussion started by: bluenavi
1 Replies

7. UNIX for Advanced & Expert Users

Files disappearing from /users/home

We have seen an issue whereby every morning around the same time , we see files being deleted from /users/$userid . We have many crons and processes running across 40+ different servers . Possibly some rogue process is doing this . How can one isolate the process removing stuff from the... (4 Replies)
Discussion started by: taherkf
4 Replies

8. Windows & DOS: Issues & Discussions

Disappearing wget download [Windows]

I downloaded and installed wget for windows, then used cmd.exe to run it directly from its install folder. I downloaded an 8.5 GB (yes, Giga) tar file, waited a couple of days, then tried to find it only to see that it's nowhere to be found! I don't want to re-download the whole thing, especially... (3 Replies)
Discussion started by: HalfThere
3 Replies

9. Shell Programming and Scripting

How to retrieve all the linked script files/ctl files/sql files?

Hi I am going to migrate our datawarehouse system from HP Tru 64 Unix to the Red Hat Linux. Inside the box, it is running around 40 cron jobs; inside each cron job, it is calling other shell script files, and the shell script files may again call other shell script files or ctl files(for... (1 Reply)
Discussion started by: franksubramania
1 Replies

10. UNIX for Dummies Questions & Answers

Disappearing route

I have a route that disappears when the server is rebooted. to get the route back I do: route add 65.x.x.x 10.0.x.x I go to cd /etc/inet vi config and the route is in place Anybody might know what is happening? (4 Replies)
Discussion started by: jrmontg
4 Replies
Login or Register to Ask a Question