Linux Lite Forums
Access to user time log - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20)
+--- Thread: Access to user time log (/showthread.php?tid=7541)



Access to user time log - lionwag - 12-20-2020

How do I access the date and time a user is logged in and out?


Re: Access to user time log - TheDead - 12-20-2020

Ohh, that would be useful for parental control. Like the Nintendo parental app.
I would like to know too Wink


Re: Access to user time log - firenice03 - 12-21-2020

[member=10111]lionwag[/member] [member=6733]TheDead[/member]

Could use 'last' - you'll want to head or more it thou (depending)....

Code:
last |more
last |head



Re: Access to user time log - trinidad - 12-21-2020

The simple commands--    lastlog    --will display up to a month of login data
                                        w          --will display current user and uptime
                                        uptime  --will display current session uptime


If you know the user name--  last -f /var/log/wtmp username

TC


Re: Access to user time log - lionwag - 12-21-2020

Correct info, thanks.  How do I add a SOLVED tag?


Re: Access to user time log - trinidad - 12-21-2020

Login to the forum. Select your original post. Click modify, and then select prefix solved and save.

TC