Who changed a file?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Who changed a file?
# 1  
Old 07-24-2007
Who changed a file?

How can I tell what user last updated a file?
# 2  
Old 07-25-2007
I don't believe you can get this info out-of-the-box, you need to setup some kind of wrapper. Otherwise, "stat your-file" can give you info such as :

Quote:
stat monports.py
File: `monports.py'
Size: 548 Blocks: 8 IO Block: 4096 regular file
Device: 307h/775d Inode: 203150 Links: 1
Access: (0775/-rwxrwxr-x) Uid: ( 500/sysgate) Gid: ( 500/sysgate)
Access: 2007-06-14 15:16:53.000000000 +0300
Modify: 2007-06-12 18:08:57.000000000 +0300
Change: 2007-06-12 18:08:57.000000000 +0300
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to echo "File permissions or ownership changed from required " when accidentally changed.

Hi All, I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :( which have similar names ( /var in root and var of some other directory ).:confused: Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies

2. Homework & Coursework Questions

Newest file changed

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The program should search all files in current directory and it's subdirectories and list out the newest file by... (8 Replies)
Discussion started by: petel1
8 Replies

3. Shell Programming and Scripting

File size changed

Hi I have many file initial size zero(empty) after some munipulation , one or more file will be greater than zero. I need to send those file names if they return to zero again. Ex. Initially the files are zero size Size filename 0 AAA 0 BBB 0 CCC 0 DDD... (1 Reply)
Discussion started by: Bluetoot
1 Replies

4. Solaris

file permissions changed to nobody4

Hi there We have had a weird problem arise recently whereby a file owned by cjo:cjogroup suddenly had it's permissions changed to nobody4:nogroup. The file is mounted off a NetApp Filer volume with the NFS permissions set to Read-Write Access (All Hosts) but no Root Access. When we tried to... (1 Reply)
Discussion started by: skewbie
1 Replies

5. Shell Programming and Scripting

Determine if file changed within last minute

Is there a simple command to find or check if a file has been modified within the last minute? The mtime parameter from find cmd only allow days. I am trying to avoid timestamp parsing and do some sort of comparison as I'm real beginner at scripts. If this is the only way, any help is greatly... (3 Replies)
Discussion started by: ystee
3 Replies

6. UNIX for Dummies Questions & Answers

file size changed after SCP

Hi All, I am having a scriptin that the SCP command is performed . The scp is transfering one file from one location to other. But after SCP i see the file size is changed from original size . What might be the reason. Thanks in advance, Arunkumar (11 Replies)
Discussion started by: arunkumar_mca
11 Replies

7. Shell Programming and Scripting

Email the changed info in the file

Hey Guyz Just need some help regarding this.I need to send an email(sendmail) to group of users, when ever the content in a file e.g abc.txt changes.We need to send the changed content in the email.We are using bash here.Thanks for your help Guyz --CoolKid (1 Reply)
Discussion started by: coolkid
1 Replies

8. UNIX for Dummies Questions & Answers

Changed File Names From CD

Hi All: I'm having a problem with transferring files from a CD to my AIX machine. I don't know if I am using the mount command properly. My problem is that when I take a CD that I have burned on my PC over to my AIX machine, whent the CD is mounted the file names have been changed (a more thorough... (3 Replies)
Discussion started by: GoEagles
3 Replies

9. Windows & DOS: Issues & Discussions

File names changed from windows to Solaris

we have developed few files in windows platform and we have given the file names like home_new.php, testing.gif, home_welcome.gif home_about_us.html, etc. etc. now we have copied all the windows files into unix machine. the unix has converted all the above files something like... (1 Reply)
Discussion started by: sivasun
1 Replies
Login or Register to Ask a Question