1833780 Members
2074 Online
110063 Solutions
New Discussion

Login Information Stored

 
sujeet joshi
Frequent Advisor

Login Information Stored

Hi ,


I want some information about login details in hpux.
wheneve I logged in HPUX it give message that-
Last successful login for root: Mon Sep 29 10:59:16 IST-5:30 2008 on pts/tw
Last unsuccessful login for root: Sun Sep 28 15:00:40 IST-5:30 2008 on pts/tu
Please wait...checking for disk quotas
You have mail.


Value of TERM has been set to "vt100".
WARNING: YOU ARE SUPERUSER !!

from where it took this information....

which file is used after login..
I checked .profile...

Please help ...
Thanks
Sujeet
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: Login Information Stored

Have a look at this:

http://docs.hp.com/en/B3921-60631/last.1.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sujeet joshi
Frequent Advisor

Re: Login Information Stored

Hi,

As a SA I want that whenever user login on th screen he will see the password expiration time blinking.

In which file this information stored...


Thanks

B V B Kumar
Frequent Advisor

Re: Login Information Stored

Hi,

Refer /var/adm/wtmp and wtmps files. I think it takes from these files.

regards
Kumar
Ollie Rowland
Frequent Advisor

Re: Login Information Stored

Hi,

The last login information is output by login on trusted systems so you won't find that in any scripts.

You can set the warn period for a password by using "passwd -w" after which the users will get a warning message on login.

If you want to see the expiration times for an account use "logins -a -l ". Other than the user and group info, this will give 2 number - the first is the number of days to passwd expiration and the second is the date of passwd expiration