EXT3 Data recovery and activity Audit


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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.


The other part of the Q I hope someone else can help.
RiggedAuthor Commented:
Thanks rindi, will give it a go. And let you know how it went.
joolsSenior Systems AdministratorCommented:
Without process auditing or accounting configured on your system I'm afraid finding out what happened will be near impossible.

Check out;
and also the link lower on the page for process accounting;

Before you do this you should have a backup policy in place, auditing is fine but it wont stop it from happening again.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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?

joolsSenior Systems AdministratorCommented:
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.
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Disaster Recovery

From novice to tech pro — start learning today.