lastlog


 
Thread Tools Search this Thread
Operating Systems AIX lastlog
# 1  
Old 04-13-2010
lastlog

There is also "host_last_login" information in a file /etc/security/lastlog .
If I login to an appl (on AIX) via 'rexec' from my pc, I can see there pc's name or its IP:
tty_last_login = rexec
host_last_login = 10.50.38.74
I already collect login time/date/user into my own log file and I want to catch pc's name, too.
Exist maybe a command to do this?

Franci
# 2  
Old 04-13-2010
I am not entirely clear what you are asking... Does this help?:

The "last" command will tell of previous entries.

"who", and specifically "who am i" will tell who you are. On my system, it tells the system that you are from. "who -m" is the equivalent and will allow you to (potentially) mix options with this.

In my case it tells the hostname because it *knows* the hostname - meaning it is resolvable (reverse and forward lookups work).
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To cleanup the root entries in lastlog

Hi Folks, Is there a way to cleanup the root entries in the Linux server from the lastlog. For AIX and SUN server, this has been done Via the fwtmp command. (1 Reply)
Discussion started by: gsiva
1 Replies

2. UNIX for Dummies Questions & Answers

Lastlog output help

what does the filed +0100 +0000 actually indicates abcd pts/30 pdd10264 Fri Sep 2 11:06:51 +0100 2011 robo pts/5 pdd10280 Mon Feb 13 16:32:45 +0000 2012 (4 Replies)
Discussion started by: robo
4 Replies

3. AIX

clear/delete log from 'last' or 'lastlog' command

Dear Friends , From 'last' or 'lastlog' command , I can get the last login informations of the users . now as a system admin , If I want to delete the log information from this 'last' 'lastog' command , then is it possible to do ? plz inform ... ... (1 Reply)
Discussion started by: shipon_97
1 Replies

4. UNIX for Dummies Questions & Answers

Lastlog and launched process

Hello there, I "discovered" an interesting command lastlog, but I couldn't find, until now:cool:, if it's possible to get a list of the launched process by users and root during a certain of time... ...any idea would be really appreciated!!! Thanks in advance. Giordano Bruno (3 Replies)
Discussion started by: Giordano Bruno
3 Replies

5. AIX

lastlog has duplicates

Hello, we are running AIX 4.3.3, has anyone experienced an issue with the lastlog file where there are duplicate entries. ie. # mkpasswd -c #mkpasswd -c /etc/security/lastlog ---> /etc/security/lastlog.idx 3004-779 Duplicate key found. "userazs" 3004-778 Index operation failed.... (1 Reply)
Discussion started by: chlawren
1 Replies
Login or Register to Ask a Question