EXT3 Data recovery and activity Audit

Hi

We have a production/testing server (Ubuntu 606) which is open to all our developers and they have unrestricted access to certain directories on the server. These directories they usually mount into a location on there Worstations (ubuntu).
Some one has gone and deleted a few very important files and directories out of these directories and we need those files back - urgently (the backups are to old and useless) We believe they were deleted through one of the users mounts on their local machine and we are unable to see who or when these files were deleted as history and other logs only show the commands ran from the shell and locally on the server only.

Is there some way I can trace/audit/check what has happened with the files (if is is not possible, how can I configure something to monitor/audit the activity on the servers files and directories?)

Then also is there a way to easily recover the deleted files? (Raid 0; ext 3) We have tried tools like TestDisk and PhotoRec, but it dumps out way to many files making it close to impossible to find the right stuff.
LVL 1
RiggedAsked:
Who is Participating?
 
joolsConnect With a Mentor Commented:
Without process auditing or accounting configured on your system I'm afraid finding out what happened will be near impossible.

Check out;
   http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html
and also the link lower on the page for process accounting;
   http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html

Before you do this you should have a backup policy in place, auditing is fine but it wont stop it from happening again.
0
 
rindiConnect With a Mentor Commented:
You could try the following to recover the files. You'll have to register the tool to actually do the recovery, but you can scan the disk with the test version to show you the files.

http://www.nucleustechnologies.com/Linux-Data-Recovery-Software.html

The other part of the Q I hope someone else can help.
0
 
RiggedAuthor Commented:
Thanks rindi, will give it a go. And let you know how it went.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
RiggedAuthor Commented:
Rindi, the app works 100% though it is a bit risky to use with the raid 0. We tested it for interest sake on a few other boxes (without registering) and it found a lot of files. Though lucky for us one of the other technicians here made a backup of everything before he did a few other things. Thus saved on that front :D Thanks anyways.

Hey Jools
Thanks the one link for Process Accounting was quite useful, but the Link you supplied above for file auditing I can't get working for Ubuntu (page is for Fedora/RH and I still a bit stupid with Linux).
There isn't perhaps something similar for Ubuntu?

0
 
joolsCommented:
I believe the instructions are pretty much the same for all linux distros, for Ubuntu you will however need to use apt-get to install the packages and there may be some differences in the file locations which you could use `find` to locate them for you.
0
 
RiggedAuthor Commented:
Thanks For the Help Guys. Much Apretiated. The box where the fun happened uses specific Libc librarys for our development enviroment thus making it a bit dificult for the audit package to run. The boks is dew for replacement and we have tested if AuditD will run on the new one and it seams to be good.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.