I have a query. we had a requirement to see the last login details of our users so I ran the command last <username> and the output i get is:
wtmp begins Apr 17 21:48
Now I need to know couple of things:
1. How can I see the year this log is being read from wtmp file
2. Is there any way to find the data for the above command before April 17 or how the old log was deleted on April 17.
I know that our AIX system went into Production on June 2006.
If you are sure there should be entries in the wtmp file and if you or anyone else has logged into that server then there should of course be entries in that file. I would guess that you have a corrupted wtmp file. What is the time stamp on the wtmp file?
I don't think by default the wtmp file gets cycled but after it grows to a certain size so see if there are other wtmp files in the same dir.
If there are others with some .extension then you can read those with
If it were my server I would do the follow.
If you want to keep the current file copy it first.
The previous command will clean the file of any entries.
Then try logging in again and run the last command, hopefully you will see a new entry logged.
Most of my Solaris 10 user accounts are generally 10 characters long. When I run the 'last' command the report only shows the first 8 characters so the information is not very helpful. How can I report the full 10 character user account. (1 Reply)
Discussion started by: PPOWER55
1 Replies
2. Post Here to Contact Site Administrators and Moderators
Hi All
I have a requirement in which during sudo logging, I must get the year details also in sudo log file. As below output is not mentioning the year due to this I will not able to idenfiy that this log belong to 2012 or 2011 or 2010
Dec 12 11:30:21 XYZ sudo: user1 : TTY=pts/5 ;... (4 Replies)
Hi,
How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php).
Any help or hint appreciated.
Thanks,
SJ (4 Replies)
Friends!!
I need your help. Where can i change/set the last login details as below in aix 5.3. And how to do that to get the results as exactly below
login as: mbpops
mbpops@xx.28.3.24's password:
Last unsuccessful login: Mon Nov 22 14:32:27 GMT 2010 on ssh from 10.132.5.129
Last login:... (17 Replies)
As a root user i switch to a different user say "oratest". I would like to know the details like at what time did the switch ( su - oratest ) happen.
Are there any logs to check this
Thanks. (4 Replies)
Friends ,
With "last root | head -1 " command , we can find the last loging date and month . But i want to find last login year.
Help me if u have any idea regarding this issue.
Thanks
AVklinux (3 Replies)