From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1b5a973480b99d14 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-04-14 00:15:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!newsfeed1.eu.ignite.net!news-feed1.de1.concert.net!EUnet.yu!Mercury.ev.co.yu!not-for-mail From: Nikola Milutinovic Newsgroups: comp.unix.tru64 Subject: Re: audit_tool Q Date: Mon, 14 Apr 2003 09:02:09 +0200 Organization: EPS JP Elektrovojvodina Message-ID: <3E9A5CF1.1010403@ev.co.yu> References: NNTP-Posting-Host: brigitte.ev.co.yu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en, sr Xref: archiver1.google.com comp.unix.tru64:9822 dompie wrote: > Hi, > > I have the following entry in the audit_log: > " > audit_id: 0 ruid/euid: 0/0 > pid: 10076 ppid: 9956 cttydev: (6,1) > event: open > char param: /unicenter/em/scripts/unifstat.awk > flags: 0 : read > parent ino: 1198 > inode id: 1224 inode dev: (2659,253641) [regular file] > object mode: 0555 > result: 3 (0x3) > cpu, seq#: 0x0, 34774 > ip address: 175.175.16.152 (lebrun) > timestamp: Fri Apr 11 14:00:05.71 2003 CEST > " > > I there a way that I can know on what TTY this command has been > launched? > This way I can use the 'w' cmd with 'ps' to get person that logged on > 'root' and typed that command. > (what's does the cttydev field mean?) The AuditID is an ID assigned to every individual login of a user. If you have two separate users logged in as "root" (UID: 0), they will still be assigned DIFFERENT AUIDs. So, use that AUID (0 in this case) to track down the login event, which will give you the IP address of the client. Nix.