need to fetch the ip address pertaining to the modified file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers need to fetch the ip address pertaining to the modified file
# 1  
Old 09-29-2008
need to fetch the ip address pertaining to the modified file

hi all

i need to find the ip address related to the modified files ... since the user id for all is the same in the server i am operating with, making file monitoring difficult....
if a file is midified then the ip address of the person who does the change should be logged in.... is there any way of doing it ... ?

any help?
# 2  
Old 09-29-2008
Code:
utmpdump /var/log/wtmp

will give you users,times,ipaddresses of logins
# 3  
Old 09-29-2008
Hi

u can make use of the "last" & file modified time .

thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Fetch data from file

Hi, I am new to scripting. I have a log file and need to fetch specific logs and copy to another file. A copy of the log is like this: =============================================================== = JOB : server123#jobs1.jobstream1 = USER : andyc = Tue 08/01/17... (3 Replies)
Discussion started by: Prngp
3 Replies

2. Shell Programming and Scripting

Fetch a section from a file

Hi, I have a file like... $cat file1 +++++++++++++++++++ client1 +++++++++++++++++++++++++++++ col1 col2 col3 ------ ----- ----- (0 rows affected) ========================================================= +++++++++++++++++++ client1 +++++++++++++++++++++++++++++ col1 col2 col3... (6 Replies)
Discussion started by: sam05121988
6 Replies

3. Shell Programming and Scripting

make the name of file and fetch few things from log file

Hello All, I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log STP_12_02_01_00_RC01.Stage_stp-domain_to_stp2perf2.042312041739.log ... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

4. Shell Programming and Scripting

script to fetch from file

Hi Guys, I have a file with around 1000 strings and i need to fetch the group to which each string belongs to from another file. Example is seen below. File 1: A B D File 2: START A B C END START M (5 Replies)
Discussion started by: jayadanabalan
5 Replies

5. 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

6. Shell Programming and Scripting

Fetch lines from a file matching column2 of another file

Hi guys, Please help me out in this problem. I have two files FILE1 abc-23 : 4529675 cde-42 : 9824532 dge-91 : 1245367 gre-45 : 9824532 fgr-76 : 4529675 FILE2 4529675 : Gal Glu house-2-be 9824532 : cat mouse 1245367 : sirf surf-2-beta where FILE2 is a static file with fixed... (5 Replies)
Discussion started by: smriti_shridhar
5 Replies

7. UNIX and Linux Applications

how to get a part of file pertaining to a condition

A log file contains details for last one year .This file contains log for all dates . The log file for a particular day starts with a particular string and ends with the same string . We need to make a new file out of this existing file containing data after a particular date. (2 Replies)
Discussion started by: chaitanyassk
2 Replies

8. 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

9. Programming

Fetch "my" IP address in HPUX 10.20

It sure sounds like a simple request.... I need some C code that will enable me to fetch the IP address of the tty attached to the current process. In short: char *myIPAddress(void) { // somebody help me fill in this part!! } -BL:confused: (4 Replies)
Discussion started by: brianleahy
4 Replies
Login or Register to Ask a Question