command to know last modified user of a file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting command to know last modified user of a file
# 8  
Old 03-21-2012
OK. If you want to audit a pre defined set of files, so there is a way you can do this if your system is a Linux system and it has a kernel with the auditing infrastructure enabled ( a kernel built with CONFIG_AUDIT set to "yes"). You will need to use the auditd daemon. Have a look at this:

Linux audit files to see who made changes to a file

Linux audit files to see who made changes to a file

but this is only for Linux. If you want to do this on a different system, we will need to find another solution.
# 9  
Old 03-21-2012
Thanks for your reply...

Our system is not Linux......

We are using IBM AIX Version 6.1.

Thanks,
# 10  
Old 03-21-2012
Well, I don't know how you can do this on the IBM AIX, but since it's a commercial grade Unix system, I'm almost sure there is way you can do this. Unfortunately the solution to this problem is totally system dependent.

[EDIT] I found something on the IBM website:

Use auditing to track reads and writes in a file
http://www.ibm.com/developerworks/aix/library/au-audit/

I think it can help you.
This User Gave Thanks to pflynn For This Post:
# 11  
Old 03-21-2012
Hmm......I am looking for command of sort of thing as I am preparing a shell script...

anyway thanks for time let me check the url given by you...
# 12  
Old 03-21-2012
I merged all three threads together. Please do not double post.

An NO: there is no one simple command line interface to audit files. You have to start a special process which records audit data. You then report against it, daily or weekly.
So, it will not be one shell script - it will require some system setup changes, and one or more scripts to report and manage auditing and audit files which can become huge. Fast.
# 13  
Old 03-21-2012
Thanks Jim for your reply.....even i have read similar thing in link shared by pflynn.

Senior Advisor - https://www.unix.com

---------- Post updated at 08:18 PM ---------- Previous update was at 08:16 PM ----------

here is the link Use auditing to track reads and writes in a file
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Du command and modified date in ssh

Hello, I am a new user to linux and having trouble completing this task. I want to list a directory of files and folders including the name, human readable size, and last modified date. So far I can get two of the three but not all together. For example: Using ls -lh gives me drwxr-xr-x... (7 Replies)
Discussion started by: Newuzer
7 Replies

2. UNIX for Dummies Questions & Answers

Find command to get the modified files past 2 hours

Hello, How to get the modified/created files past 2 hours in Solaris with find command? Thank you. (7 Replies)
Discussion started by: balareddy
7 Replies

3. Shell Programming and Scripting

Trying to modified files using sed command

hi all, i will like to modified some files with the extension .gjf . All this files have in first line this #P PM3 Opt and i want to change that to this : %nproc=2 %chk=filename.chk #p B3LYP /6-31G** opt in order to do that i have try to do a script with the sed command but i... (4 Replies)
Discussion started by: juanchy
4 Replies

4. UNIX for Advanced & Expert Users

command for recently modified files - "find" command not working

I have three files a.txt , b.txt , c.txt in a directory called my_dir1 .These files were created before two or three months . I have a tar file called my_tar1.tar which contains three files a.txt , b.txt , d.txt . Somebody untarred the my_tar1.tar into my_dir1 directory. So existing two files were... (1 Reply)
Discussion started by: joe.mani
1 Replies

5. Shell Programming and Scripting

command to know files modified morethan 30 min

Hi, i use ksh and want to know the command for gettting the files which were not modified in last 30 min. find . -name <filename > -mtime 0.0209 is not giving the results. Thanks , Mohan (3 Replies)
Discussion started by: mohanpadamata
3 Replies

6. Shell Programming and Scripting

How to get a filename modified by attaching modified timestamp

Hi, I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10). For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies

7. UNIX for Dummies Questions & Answers

how to retrieve original contents of a modified file (modified using vi)

Made changes to a file using vi editor and saved those changes now realised that the changes are not required How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies

8. UNIX for Dummies Questions & Answers

chmod command for recently modified files

hello! is there a way for me to use the chmod command to change permissions for several files all at once -based on the fact that these files were all most recently modified TODAY ? I can't use a wildcard on their filenames because the filenames are varied. But I was hoping I could somehow do... (2 Replies)
Discussion started by: polka_friend
2 Replies

9. UNIX for Advanced & Expert Users

Modified dates to a file without the cut command

how can i write the modified dates of all of the files in my directory to a file. i dont want any of the other junk from ls in there. i cant use the cut command (4 Replies)
Discussion started by: cypher
4 Replies
Login or Register to Ask a Question