LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find who logged for the past week? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-who-logged-for-the-past-week-723582/)

mike2008 05-04-2009 10:55 AM

How to find who logged for the past week?
 
I used the 'last' command to find out who logged in, but it only shows individuals from this morning. wtmp begins this morning.

How can I find all the individuals who logged on to the server from the past week?

Thanks.

******* 05-04-2009 11:10 AM

From the logrotated ones?

kandiru 05-04-2009 11:18 AM

Hi,

did you try with

Code:

[root@host /root]#lastlog | more
command ?

Bye

David

datopdog 05-04-2009 12:09 PM

You should be able to read from the logrotated wtmp file using last -f /the_rotated_file.

mike11 05-04-2009 09:17 PM

/var/log/auth.log|less (for debian)


All times are GMT -5. The time now is 11:20 PM.