LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-31-2014, 11:46 PM   #1
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Rep: Reputation: Disabled
files and directories audit history


Hello guys.
i wonder is there any way to find out the audit history about files or folders in red hat?
for example if i change the folder name how can find the privies folder name?
or if i change the files content can i restore it?
Thank you.
 
Old 01-01-2015, 03:56 AM   #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
Quote:
Originally Posted by Bouki View Post
i wonder is there any way to find out the audit history about files or folders in red hat?
Generally speaking Linux distributions do not come with a perfect audit trail configured and enabled out of the box by default. So until you configure it (audit service, rootsh, etc, etc) there'll be only inode meta data (see 'man stat'), users shell history (if any), BSD Accounting ('acct'), login records ('lastb; last') or application "recent files" functionality (if any), none of which should be taken as all-encompassing or tamperproof in the event of a compromise of security unless combined with remote logging.


Quote:
Originally Posted by Bouki View Post
for example if i change the folder name how can find the privies folder name?
If you changed the name from a shell then look at your shell history.


Quote:
Originally Posted by Bouki View Post
or if i change the files content can i restore it?
Not if you haven't made any backups prior to making changes. There's one exception and that is files contained in a package: you can verify package contents, download the package then extract and 'diff' files or replace it with a pristine copy.
 
1 members found this post helpful.
  


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
Script to monitor(audit) and log changes of directories stev.h Programming 5 02-15-2012 10:59 AM
How can I read the audit time stamp? msg=audit(1213186256.105:20663) abefroman Linux - Software 3 04-21-2011 06:37 PM
[Linux Audit]: Which groups should be allowed to read audit log files? quanba Linux - Security 1 11-15-2010 10:09 AM
Need to audit created files and deleted files jholp Linux - Security 1 09-01-2010 05:41 PM
Going to the previous directories - directory history frankie_DJ Linux - Newbie 6 07-22-2005 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:46 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