Linux Lite Forums

Software - Support => Other => Topic started by: lionwag on December 20, 2020, 09:35:37 AM

Title: Access to user time log
Post by: lionwag on December 20, 2020, 09:35:37 AM
How do I access the date and time a user is logged in and out?
Title: Re: Access to user time log
Post by: TheDead on December 20, 2020, 03:04:52 PM
Ohh, that would be useful for parental control. Like the Nintendo parental app.
I would like to know too ;)
Title: Re: Access to user time log
Post by: firenice03 on December 20, 2020, 10:07:37 PM
@lionwag @TheDead

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

Code: [Select]
last |more
last |head
Title: Re: Access to user time log
Post by: trinidad on December 21, 2020, 09:55:42 AM
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
Title: Re: Access to user time log
Post by: lionwag on December 21, 2020, 01:12:58 PM
Correct info, thanks.  How do I add a SOLVED tag?
Title: Re: Access to user time log
Post by: trinidad on December 21, 2020, 03:48:30 PM
Login to the forum. Select your original post. Click modify, and then select prefix solved and save.

TC